开发者

Embed a YouTube video in HTML5 without Flash

Is it possible to embed a 开发者_JAVA技巧YouTube video on your own website using HTML5, so it can be played on Safari on iPhone without Flash?


According to http://apiblog.youtube.com/2010/07/new-way-to-embed-youtube-videos.html:

<iframe src="http://www.youtube.com/embed/VIDEO_ID"></iframe>

That will play in HTML5 video (falling back on Flash when HTML5 video is unavailable).

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜