doukanzhuo4297
doukanzhuo4297
2017-12-18 16:04

用户选择是下载还是流式传输mp4媒体

  • streaming
  • download
  • php

I'd like to give the user the possibility to download or stream the same media. I tried this way (adding download) but it doesn't work:

<a target='_blank' href='http://another/site/file.mp4' download>DOWNLOAD</a>
<a target='_blank' href='http://another/site/file.mp4'>STREAMING</a>

I create the page using php 5.6

Note that the file is always the same: http://another/site/file.mp4 and comes from a different domain (The <a> urls are in site1 and the media is in site2 )

  • 点赞
  • 回答
  • 收藏
  • 复制链接分享

1条回答

为你推荐