<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Shawn Chittle &#187; flash</title>
	<atom:link href="http://shawnchittle.com/tag/flash/feed/" rel="self" type="application/rss+xml" />
	<link>http://shawnchittle.com</link>
	<description></description>
	<lastBuildDate>Fri, 18 May 2012 00:21:36 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>How to show Flash video on your iPhone in WordPress</title>
		<link>http://shawnchittle.com/2010/internet/how-to-show-flash-video-on-your-iphone-in-wordpress/</link>
		<comments>http://shawnchittle.com/2010/internet/how-to-show-flash-video-on-your-iphone-in-wordpress/#comments</comments>
		<pubDate>Thu, 04 Feb 2010 16:25:46 +0000</pubDate>
		<dc:creator>Shawn Chittle</dc:creator>
				<category><![CDATA[Internet]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Video]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[flash]]></category>
		<category><![CDATA[iphone]]></category>
		<category><![CDATA[mp4]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[swap]]></category>
		<category><![CDATA[switch]]></category>
		<category><![CDATA[vimeo]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://shawnchittle.com/?p=333</guid>
		<description><![CDATA[Well, you can't, really, but you can fake it real good. Youtube works great, but I really like Vimeo which sadly is Flash-based and does not work on the iPhone. But you can instruct your WordPress blog post to swap out the Vimeo video for an MP4 version of the video that does work on [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://shawnchittle.com/sites/shawnchittle/wordpress/wp-content/uploads/2010/02/iphone.png"><img class="alignleft size-full wp-image-376" title="iphone" src="http://shawnchittle.com/sites/shawnchittle/wordpress/wp-content/uploads/2010/02/iphone.png" alt="" width="640" height="480" /></a></p>
<p>Well, you can't, really, but you can fake it real good. Youtube works great, but I really like Vimeo which sadly is Flash-based and does not work on the iPhone. But you can instruct your WordPress blog post to swap out the Vimeo video for an MP4 version of the video that <strong>does</strong> work on the iPhone.</p>
<p>Here's how you do it:</p>
<p>1. Encode your video and output an MP4 iPhone compatible video. Upload it to where you host your files. I use <a href="http://apple.com/quicktime">Quicktime Pro</a> and the default settings.</p>
<p>2. Download the <a href="http://wordpress.org/extend/plugins/exec-php/">EXEC-PHP WordPress</a> plugin. This will let your posts interpret PHP code without any hassle.</p>
<p>3. Add a new post. Click the HTML tab, and paste this code in, changing the values accordingly.</p>
<p>&lt;?php<br />
if(strstr($_SERVER['HTTP_USER_AGENT'],'iPhone') || strstr($_SERVER['HTTP_USER_AGENT'],'iPod')) {<br />
print &lt;&lt;&lt;END<br />
&lt;embed src="http://pathtovideo.m4v" width="XXX" height="XXX" href="http://pathtovideo.m4v"&gt;<br />
END;<br />
}<br />
else {<br />
print &lt;&lt;&lt;END<br />
*****VIDEO EMBED CODE*****<br />
END;<br />
}<br />
?&gt;</p>
]]></content:encoded>
			<wfw:commentRss>http://shawnchittle.com/2010/internet/how-to-show-flash-video-on-your-iphone-in-wordpress/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

