Thursday, October 11, 2012

Where's the old Youtube Embed Code

We are working with Sinema, an independent theater in Singapore who will be screening our feature film Valley of the Sun. Sinema wanted to imbed the Valley of the Sun Trailer in their website, but there website only works with youtube's old embed code, not the new iframe embed code. It doesn't appear that youtube offers an option to copy the old embed code.

After searching around on the web, we were able to find the old embed code and swap out the targeted youtube video. Here's the old code:

<object width="560" height="315"><param name="movie" value="http://www.youtube.com/v/Hu1EzfIsEYA?version=3&amp;hl=en_US"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/Hu1EzfIsEYA?version=3&amp;hl=
en_US" type="application/x-shockwave-flash" width="560" height="315" allowscriptaccess="always" allowfullscreen="true"></embed></object>


Here are some insructions:


The bits highlighted in blue are the width and height which you can adjust as you wish. The bits in red are the 11-character video ID: simply replace that part with the video ID of the video you want to embed.

The video ID can be found in the URL, which you can get from your browser's address bar when you're looking at the video on its own page:

http://www.youtube.com/watch?v=NUjbKaUcxeA&feature=plcp

It's the 11-character code that comes after v=...
Here is the trailer embedded on this blog using the old embed code:

No comments:

Post a Comment