【问题标题】:html5 tag video download button not working in apphtml5标签视频下载按钮在应用程序中不起作用
【发布时间】:2019-06-26 05:06:11
【问题描述】:

html5 视频标签中的下载按钮在 ember-cordova 移动应用程序中不起作用。

我已经在 web 和 chrome 上对它进行了测试,它运行良好。它只是没有在应用程序中下载。有关如何解决此问题的任何想法?

我已尝试添加存储权限 WRITE_EXTERNAL_STORAGE,但它也不起作用。

这是下面的代码。

<video id={{item.id}} class="social-video" {{action goToDiscuss item.id}} poster={{convert-url item.post_image}}>
<source src={{convert-url item.post_image.web_url}} type="video/mp4">
</video>

【问题讨论】:

标签: html ember.js


【解决方案1】:

我无法添加评论,因为我有足够的声誉。您只需要在外部或内部存储上添加写入权限,然后您就可以下载视频。添加插件存储并在下载视频时获得运行时权限。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2017-10-28
    • 1970-01-01
    • 2012-02-12
    • 1970-01-01
    相关资源
    最近更新 更多