<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Youtube videos within websites on the Safari iPhone</title>
	<atom:link href="http://pixelsfromtheedge.com/2009/02/youtube-videos-embed-iphone-safari/feed/" rel="self" type="application/rss+xml" />
	<link>http://pixelsfromtheedge.com/2009/02/youtube-videos-embed-iphone-safari/</link>
	<description>Creative // Technology // Digital // Interactive // Mobile // Advertising</description>
	<lastBuildDate>Wed, 04 Apr 2012 21:26:35 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Introducing Pixels From The Edge Version 3.0 &#124; Pixels from the Edge</title>
		<link>http://pixelsfromtheedge.com/2009/02/youtube-videos-embed-iphone-safari/comment-page-1/#comment-4080</link>
		<dc:creator>Introducing Pixels From The Edge Version 3.0 &#124; Pixels from the Edge</dc:creator>
		<pubDate>Mon, 28 Mar 2011 17:10:52 +0000</pubDate>
		<guid isPermaLink="false">http://www.detroitdigitalrevolution.com/clients/me/blog/?p=3#comment-4080</guid>
		<description>[...] and so important that I wanted to do the next developers that came along a favor and leave them the solution. I setup a Blogger account within minutes and posted the article and I enjoyed it so much, to write [...]</description>
		<content:encoded><![CDATA[<p>[...] and so important that I wanted to do the next developers that came along a favor and leave them the solution. I setup a Blogger account within minutes and posted the article and I enjoyed it so much, to write [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Richie</title>
		<link>http://pixelsfromtheedge.com/2009/02/youtube-videos-embed-iphone-safari/comment-page-1/#comment-3916</link>
		<dc:creator>Richie</dc:creator>
		<pubDate>Tue, 22 Feb 2011 21:02:44 +0000</pubDate>
		<guid isPermaLink="false">http://www.detroitdigitalrevolution.com/clients/me/blog/?p=3#comment-3916</guid>
		<description>Brilliant, thanks for sharing! It&#039;s similar to my deadline &#039;hack&#039; but looks to be a lot more developed and robust. Hopefully future visitors to this post will be able to use that link to help them.

Nitasha please come back and post what your were working on so I can see for myself =)</description>
		<content:encoded><![CDATA[<p>Brilliant, thanks for sharing! It&#8217;s similar to my deadline &#8216;hack&#8217; but looks to be a lot more developed and robust. Hopefully future visitors to this post will be able to use that link to help them.</p>
<p>Nitasha please come back and post what your were working on so I can see for myself =)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nitasha</title>
		<link>http://pixelsfromtheedge.com/2009/02/youtube-videos-embed-iphone-safari/comment-page-1/#comment-3915</link>
		<dc:creator>Nitasha</dc:creator>
		<pubDate>Tue, 22 Feb 2011 20:48:29 +0000</pubDate>
		<guid isPermaLink="false">http://www.detroitdigitalrevolution.com/clients/me/blog/?p=3#comment-3915</guid>
		<description>This is where I found my solution. It works really well all across the browsers and different phones and even iPad. 
http://techdrawl.com/D-Boards/2-Developers-Corner/iPhone/iPad-embedding-YouTube-the-right-way

Thank you so much for your quick reply!</description>
		<content:encoded><![CDATA[<p>This is where I found my solution. It works really well all across the browsers and different phones and even iPad.<br />
<a href="http://techdrawl.com/D-Boards/2-Developers-Corner/iPhone/iPad-embedding-YouTube-the-right-way" rel="nofollow">http://techdrawl.com/D-Boards/2-Developers-Corner/iPhone/iPad-embedding-YouTube-the-right-way</a></p>
<p>Thank you so much for your quick reply!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Richie</title>
		<link>http://pixelsfromtheedge.com/2009/02/youtube-videos-embed-iphone-safari/comment-page-1/#comment-3914</link>
		<dc:creator>Richie</dc:creator>
		<pubDate>Tue, 22 Feb 2011 20:08:20 +0000</pubDate>
		<guid isPermaLink="false">http://www.detroitdigitalrevolution.com/clients/me/blog/?p=3#comment-3914</guid>
		<description>Hi Nitasha, I wrote this post over 2 years ago and it&#039;s great to know it&#039;s still relevant and can help you with your project. I hope you understand that at the time I wrote it I was also on a tight deadline and you should consider it as a hacked together example, even though it was robust and stable in production for well over a year until we refreshed the site. I can&#039;t speak to other phones, I can only tell you that I wrote this with the iPhone in mind.

If you correctly use the 3 example code snippets as well as embed the SWFObject Javascript library into the page then it should all work as expected. Be careful with reading the documentation of the SWFObject library you download as it may be updated and require different syntax.

The 1st code snippet creates a boolean that determines whether or not the browser is the iPhone. The 2nd code snippet embeds the youtube player if it is the iPhone, and if not it writes alternate content (you can replace this part with an image or whatever you want that alternate content to be). And the 3rd part calls the SWFObject embed routine to replace the &quot;YoutubeContent&quot; div with the YouTube video. Like I say the important part that is missing from my code snippets is pulling in the SWFObject JS library.

This was written over two years ago, way before the iPad or android phones ever existed, so I just don&#039;t know anymore how useful it still is, as a newbie you need to understand that this code was written to help point a more advanced user in the right direction. Having said that I hope it can still help you.

It would be interesting to know if the SWFObject library has evolved itself to allow for the iPhone/iPad Safari specific nuances. And I also want to point out that there have been some very valuable comments posted here over the years so make sure you carefully read what people have said as it could also be a big help.

Good luck! Please come back and post your project when it launches!</description>
		<content:encoded><![CDATA[<p>Hi Nitasha, I wrote this post over 2 years ago and it&#8217;s great to know it&#8217;s still relevant and can help you with your project. I hope you understand that at the time I wrote it I was also on a tight deadline and you should consider it as a hacked together example, even though it was robust and stable in production for well over a year until we refreshed the site. I can&#8217;t speak to other phones, I can only tell you that I wrote this with the iPhone in mind.</p>
<p>If you correctly use the 3 example code snippets as well as embed the SWFObject Javascript library into the page then it should all work as expected. Be careful with reading the documentation of the SWFObject library you download as it may be updated and require different syntax.</p>
<p>The 1st code snippet creates a boolean that determines whether or not the browser is the iPhone. The 2nd code snippet embeds the youtube player if it is the iPhone, and if not it writes alternate content (you can replace this part with an image or whatever you want that alternate content to be). And the 3rd part calls the SWFObject embed routine to replace the &#8220;YoutubeContent&#8221; div with the YouTube video. Like I say the important part that is missing from my code snippets is pulling in the SWFObject JS library.</p>
<p>This was written over two years ago, way before the iPad or android phones ever existed, so I just don&#8217;t know anymore how useful it still is, as a newbie you need to understand that this code was written to help point a more advanced user in the right direction. Having said that I hope it can still help you.</p>
<p>It would be interesting to know if the SWFObject library has evolved itself to allow for the iPhone/iPad Safari specific nuances. And I also want to point out that there have been some very valuable comments posted here over the years so make sure you carefully read what people have said as it could also be a big help.</p>
<p>Good luck! Please come back and post your project when it launches!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nitasha</title>
		<link>http://pixelsfromtheedge.com/2009/02/youtube-videos-embed-iphone-safari/comment-page-1/#comment-3913</link>
		<dc:creator>Nitasha</dc:creator>
		<pubDate>Tue, 22 Feb 2011 19:35:44 +0000</pubDate>
		<guid isPermaLink="false">http://www.detroitdigitalrevolution.com/clients/me/blog/?p=3#comment-3913</guid>
		<description>Thanks! This code works great on iphone. I&#039;m a newbie, so my question is how do it make it work on iphone and other phones as well as the regular browsers on the computer. Right now if I use this code and open the page on a safari on my mac it says &quot;You must have the Flash plugin to see this content&quot;. Please respond I&#039;m on a deadline.

Any help is much appreciated!</description>
		<content:encoded><![CDATA[<p>Thanks! This code works great on iphone. I&#8217;m a newbie, so my question is how do it make it work on iphone and other phones as well as the regular browsers on the computer. Right now if I use this code and open the page on a safari on my mac it says &#8220;You must have the Flash plugin to see this content&#8221;. Please respond I&#8217;m on a deadline.</p>
<p>Any help is much appreciated!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Richie</title>
		<link>http://pixelsfromtheedge.com/2009/02/youtube-videos-embed-iphone-safari/comment-page-1/#comment-3899</link>
		<dc:creator>Richie</dc:creator>
		<pubDate>Fri, 28 Jan 2011 01:41:14 +0000</pubDate>
		<guid isPermaLink="false">http://www.detroitdigitalrevolution.com/clients/me/blog/?p=3#comment-3899</guid>
		<description>Glad to help bro. Can&#039;t believe this is still relevant two years later!</description>
		<content:encoded><![CDATA[<p>Glad to help bro. Can&#8217;t believe this is still relevant two years later!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ryan</title>
		<link>http://pixelsfromtheedge.com/2009/02/youtube-videos-embed-iphone-safari/comment-page-1/#comment-3898</link>
		<dc:creator>Ryan</dc:creator>
		<pubDate>Thu, 27 Jan 2011 16:17:30 +0000</pubDate>
		<guid isPermaLink="false">http://www.detroitdigitalrevolution.com/clients/me/blog/?p=3#comment-3898</guid>
		<description>Thanks for this! Just saved my butt on a deadline… appreciate you taking the time to write all this out.

I added a variable for iPad and used the new YouTube iframe rather than the embed and it worked great!</description>
		<content:encoded><![CDATA[<p>Thanks for this! Just saved my butt on a deadline… appreciate you taking the time to write all this out.</p>
<p>I added a variable for iPad and used the new YouTube iframe rather than the embed and it worked great!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ryan</title>
		<link>http://pixelsfromtheedge.com/2009/02/youtube-videos-embed-iphone-safari/comment-page-1/#comment-3897</link>
		<dc:creator>Ryan</dc:creator>
		<pubDate>Thu, 27 Jan 2011 16:16:11 +0000</pubDate>
		<guid isPermaLink="false">http://www.detroitdigitalrevolution.com/clients/me/blog/?p=3#comment-3897</guid>
		<description>Thanks for this!  Just saved my butt on a deadline... appreciate you taking the time to write all this out.</description>
		<content:encoded><![CDATA[<p>Thanks for this!  Just saved my butt on a deadline&#8230; appreciate you taking the time to write all this out.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Shane</title>
		<link>http://pixelsfromtheedge.com/2009/02/youtube-videos-embed-iphone-safari/comment-page-1/#comment-329</link>
		<dc:creator>Shane</dc:creator>
		<pubDate>Wed, 30 Jun 2010 15:08:09 +0000</pubDate>
		<guid isPermaLink="false">http://www.detroitdigitalrevolution.com/clients/me/blog/?p=3#comment-329</guid>
		<description>Great post, this sorted out my iPhone issues nicely.  It doesn&#039;t work on the iPad though.

The iPad requires the entire object code block to be provided, not just the embed tag.  I did try Gustavo&#039;s suggestion as validating code is obviously appealing, but the iPad didn&#039;t seem to like the lack of an embed tag.

My current solution, and it&#039;s one I&#039;m not entirely happy with, is the provide only the embed for iphone and ipod, the full object tag for an ipad, and use swfobject for everything else with a default message for non-flash users.

This should probably be developed further by wrapping the whole lot in a video tag to support html5 first and foremost, but it&#039;ll do for now.

Just out of interest, what are your issues with swfobject?  It&#039;s the standard at my agency too, and I&#039;ve not yet had trouble with it aside from its lack of support for the mobile version of Safari.</description>
		<content:encoded><![CDATA[<p>Great post, this sorted out my iPhone issues nicely.  It doesn&#8217;t work on the iPad though.</p>
<p>The iPad requires the entire object code block to be provided, not just the embed tag.  I did try Gustavo&#8217;s suggestion as validating code is obviously appealing, but the iPad didn&#8217;t seem to like the lack of an embed tag.</p>
<p>My current solution, and it&#8217;s one I&#8217;m not entirely happy with, is the provide only the embed for iphone and ipod, the full object tag for an ipad, and use swfobject for everything else with a default message for non-flash users.</p>
<p>This should probably be developed further by wrapping the whole lot in a video tag to support html5 first and foremost, but it&#8217;ll do for now.</p>
<p>Just out of interest, what are your issues with swfobject?  It&#8217;s the standard at my agency too, and I&#8217;ve not yet had trouble with it aside from its lack of support for the mobile version of Safari.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Wes</title>
		<link>http://pixelsfromtheedge.com/2009/02/youtube-videos-embed-iphone-safari/comment-page-1/#comment-207</link>
		<dc:creator>Wes</dc:creator>
		<pubDate>Thu, 25 Feb 2010 02:24:01 +0000</pubDate>
		<guid isPermaLink="false">http://www.detroitdigitalrevolution.com/clients/me/blog/?p=3#comment-207</guid>
		<description>I was searching Google about this same problem and came across this page. I have a website that redirects to a blogger page. It is a movie review and discussion site so I am heavily relying on embedding YouTube videos when allowed to get trailers. I just discovered the IPhone issue and need a more &quot;for dummies&quot; description of this solution. My use and understanding of HTML and adding things to my site using code is very basic. As described would this solution help me at all on Blogger? I appreciate any help and/or advice.  Thanks!</description>
		<content:encoded><![CDATA[<p>I was searching Google about this same problem and came across this page. I have a website that redirects to a blogger page. It is a movie review and discussion site so I am heavily relying on embedding YouTube videos when allowed to get trailers. I just discovered the IPhone issue and need a more &#8220;for dummies&#8221; description of this solution. My use and understanding of HTML and adding things to my site using code is very basic. As described would this solution help me at all on Blogger? I appreciate any help and/or advice.  Thanks!</p>
]]></content:encoded>
	</item>
</channel>
</rss>

