如何将下载视频按钮添加到HTML5播放器?

时间:2015-04-27 15:58:35

标签: javascript html5 button video download

我正在使用此网站:http://animevid-episode.webflow.io/

我想让用户下载我放入播放器的视频。您知道如何在此播放器或任何其他通用HTML5视频播放器中添加“下载视频”按钮吗?

实际上,我只能在Google上找到下载视频的工具以及如何防止下载。我想这可能是JavaScript,但实际上找不到如何。欢迎任何建议或提示。

3 个答案:

答案 0 :(得分:2)

也许:

<video id="Video1" >
     <source src="something.ogv" type="video/ogg" />
     HTML5 Video is required for this example. 
     <a href="something.ogv">Download the video</a> file. 
</video>

答案 1 :(得分:1)

&#13;
&#13;
LinearRegressionWithSGD
&#13;
&#13;
&#13;

答案 2 :(得分:0)

<video control>
     <source src="https://gcs-vimeo.akamaized.net/exp=1560754230~acl=%2A%2F1361268216.mp4%2A~hmac=d30db59f387628f38a3f9e7a74f2d359a29093b7c6cedf8a69ec2cdbe3e6cc88/vimeo-prod-skyfire-std-us/01/3225/13/341126404/1361268216.mp4" type="video/mp4" /> 
     HTML5 Video .
     <a href="https://gcs-vimeo.akamaized.net/exp=1560754230~acl=%2A%2F1361268216.mp4%2A~hmac=d30db59f387628f38a3f9e7a74f2d359a29093b7c6cedf8a69ec2cdbe3e6cc88/vimeo-prod-skyfire-std-us/01/3225/13/341126404/1361268216.mp4" download>Download video</a> . 
</video>