问题原文
原帖链接 · 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.
摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。
