Aximili
Aximili

Reputation: 29484

Embed a YouTube video in HTML5 without Flash

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

Upvotes: 11

Views: 9044

Answers (1)

Delan Azabani
Delan Azabani

Reputation: 81482

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).

Upvotes: 13

Related Questions