« Scott Stanfield on HTML5 | Main | Fonts, Form and Function: A Primer on Digital Typography »
Tuesday
May172011

Advanced Embedded Youtube Videos

The following code will embed a Youtube video in your page and start playback automatically at 30 seconds into the video:


  
  
  
  

Note the &autoplay=1 parameter in both the <param> value attribute and the <embed> src attributes. This starts the video automatically as soon as it is sufficiently buffered to play.

Also note the &start=30 parameter again in both the <param> value attribute and the <embed> src attributes. This causes the video to begin playing at the thirty second mark. Because we are embedding this video we must use the &start parameter. It's value is the number of seconds we want to start into the video. So, if we wanted to start one minute, fifteen seconds into the video we would use &start=75.