大网数据广告活动
网站运营与故障问答

Hosting HTML5 video on Youtube/Vimeo, without using player

· 52CE 我爱测

I use the following <video> tag to play an HTML5 video as a background on my website: <video autoplay loop mob-hide> <source src="../Images/myvideo.mp4" type="video/mp4" /> Your browser does not support the video tag. I suggest y…

问题原文

原帖链接 · George Edwards · CC BY-SA 3.0

I use the following <video> tag to play an HTML5 video as a background on my website:

<video autoplay loop mob-hide>
    <source src="../Images/myvideo.mp4" type="video/mp4" />
    Your browser does not support the video tag. I suggest you upgrade your browser.</video>

At the moment, I am hosting this on my web server, but would ideally like to host it on one of the freely available video sites, e.g. YouTube or Vimeo. Is it possible to do this, without embedding one of their players? NB: this doesn't need to work on mobile

已采纳解答

原帖链接 · Ronen Teva · CC BY-SA 3.0

You can use Youtube and Vimeo to host your videos for free, however you will not be able to access the files directly, as they embed their own ads like Zhaph mentioned.

If you choose to do that, you might want to use Video.js player, so you can provide a more personalized user experience.

Another popular option is to use a CDN, like Simon mentioned.
I use Cloudflare and very happy with it.

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Webmasters Stack Exchange
适用范围
以原帖系统、软件版本与发布日期为准(2016-02-15)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 3.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。