Display external site video

2019-08-21 14:26发布

I want to display other website videos (eg: DailyMotion, Youtube and Vimeo). How can I do this in my HTML code?

I want to use something like this:

<video width="320" height="240" controls="controls">
  <source src="movie.mp4" type="video/mp4" />
  <source src="movie.ogg" type="video/ogg" />
  Your browser does not support the video tag.
</video>

标签: html video
2条回答
Luminary・发光体
2楼-- · 2019-08-21 14:43

All three sites provide an "Embed this video" (or similar) link near every video they allow to be shared. Use that.

Bypassing their player would be a violation of their terms (as you would be effectively sucking up the bandwidth they pay for without applying their branding / advertising to the video).

查看更多
放我归山
3楼-- · 2019-08-21 14:59

Here is a link that discusses all the above videos websites you mentioned.

http://www.onextrapixel.com/2012/02/29/top-10-ways-to-embed-video-into-a-web-page/

查看更多
登录 后发表回答