views:

42

answers:

1

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?

+4  A: 

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

<iframe src="http://www.youtube.com/embed/VIDEO_ID"&gt;&lt;/iframe&gt;

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

Delan Azabani