Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

YouTube Videos in Blogger Atom/RSS feeds

I'm trying to view a feed from my blogger account both from a Ruby on Rails app, and Safari's feed reader. All of the simple HTML (like paragraphs and images) is interpreted just fine, but embedding a YouTube video isn't working.

For example, when I add this to my post inside of blogger:

<p>Before</p>
<object width="560" height="340"><param name="movie" value="http://www.youtube.com/v/9_tCtvmAm4M&hl=en_US&fs=1&rel=0"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/9_tCtvmAm4M&hl=en_US&fs=1&rel=0" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="560" height="340"></embed></object>

This comes out using the feed_tools gem:

<p>Before</p>
&lt;object width="560" height="340"&gt;&lt;param name="movie" value="http://www.youtube.com/v/9_tCtvmAm4M&amp;amp;hl=en_US&amp;amp;fs=1&amp;amp;rel=0"&gt;&lt;/param&gt;&lt;param name="allowFullScreen" value="true"&gt;&lt;/param&gt;&lt;param name="allowscriptaccess" value="always"&gt;&lt;/param&gt;&lt;embed src="http://www.youtube.com/v/9_tCtvmAm4M&amp;amp;hl=en_US&amp;amp;fs=1&amp;amp;rel=0" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="560" height="340"&gt;&lt;/embed&gt;&lt;/object&gt;

Safari's feed reader simply shows:

<p>Before</p>

... which makes me think that it can't parse what's being received as the youtube video.

Is it possible to get youtube videos to show up correctly in feed readers? Is this happening because the embedded flash isn't officially valid HTML?

like image 757
Eric the Red Avatar asked Nov 14 '22 13:11

Eric the Red


1 Answers

Hmmm that's a bit weird, was it is like with other Flash content? Have you tried YouTube's new way of embedding videos: http://apiblog.youtube.com/2010/07/new-way-to-embed-youtube-videos.html

like image 147
Ahmed Nuaman Avatar answered Dec 04 '22 23:12

Ahmed Nuaman