About

Sunday 15 July 2012

Always Use NOEMBED When Embedding Video in your Blog

YoutubeWe frequently come across situations in our RSS readers where the post title says "iPhone Demo" but the area where you expect to see that embedded video is blank.




 You may think that the blogger forgot to embed the video in his blog post but the actual reason is something else. Visit the same blog in your browser and you will see the video displaying perfectly.

If you are blogger and don't want your readers to run into a similar situation, Nick Bradburysuggests that always use the NOEMBED tag when embedding Youtube videos in your blog posts

In that case, if the RSS reader fails to display the video player properly, your subscribers get to know about it. Here's a real example.

Default YouTube Embed Code

<embed src="http://www.youtube.com/v/ujt_UT0MvH4" type="application/x-shockwave-flash" wmode="transparent" width="425" height="350"></embed>

YouTube HTML code with NOEMBED

<embed src="http://www.youtube.com/v/ujt_UT0MvH4" type="application/x-shockwave-flash" wmode="transparent" width="425" height="350"></embed>
<noembed>
<a href="http://www.youtube.com/watch?v=ujt_UT0MvH4">Watch on Youtube</a></noembed>


The NOEMBED tag may have the hyperlink to the actual video or a thumbnail image of some video frame, something that blip.tv does automatically.

No comments:

Post a Comment