如何点击代码<a> in mobile by using HTML5

时间:2015-11-21 14:08:05

标签: html5 video download

I have video in my page, and put tag to download video when click it, in pc is work but in mobile did not work how can make mobile download video by clicking on download button.

my code like this

<div id="Video">
  <video controls autobuffer>
    <source src="f380.m4v">
    <source src="f3gp.3gp" type="video/3gp">
    <source src="fFlv.flv" type="video/flv">
    Your browser does not support the video tag.
  </video>
  <a href="f3gp.3gp" download>تحميل/download</a>
</div>

1 个答案:

答案 0 :(得分:0)

某些移动浏览器不支持此属性:Chrome&amp;适用于iOS的Safari(甚至是safari本身)和一些旧的Android浏览器。但是,您可以尝试“Content-Disposition”标题,我无法告诉您这是否适用于该移动浏览器。

示例:

set the "content-disposition" header to "attachment; filename=x";

有关“下载”属性支持的更多信息:http://caniuse.com/#feat=download