<?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/"
	xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd"
>

<channel>
	<title>SmarterGeek : Rex Moncrief&#039;s Computer Repair and Technology &#187; code</title>
	<atom:link href="http://www.smartergeek.com/category/code/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.smartergeek.com</link>
	<description></description>
	<lastBuildDate>Sat, 28 Aug 2010 20:11:54 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
<!-- podcast_generator="Blubrry PowerPress/1.0.9" mode="advanced" entry="advanced" -->
	<itunes:summary></itunes:summary>
	<itunes:author>SmarterGeek : Rex Moncrief&#039;s Computer Repair and Technology</itunes:author>
	<itunes:explicit>no</itunes:explicit>
	<itunes:image href="http://www.smartergeek.com/wp-content/plugins/powerpress/itunes_default.jpg" />
	<itunes:subtitle></itunes:subtitle>
	<image>
		<title>SmarterGeek : Rex Moncrief&#039;s Computer Repair and Technology &#187; code</title>
		<url>http://www.smartergeek.com/wp-content/plugins/powerpress/rss_default.jpg</url>
		<link>http://www.smartergeek.com/category/code/</link>
	</image>
		<item>
		<title>Embedding iPhone Video</title>
		<link>http://www.smartergeek.com/2009/08/02/embedding-iphone-video/</link>
		<comments>http://www.smartergeek.com/2009/08/02/embedding-iphone-video/#comments</comments>
		<pubDate>Sun, 02 Aug 2009 14:54:00 +0000</pubDate>
		<dc:creator>rex</dc:creator>
				<category><![CDATA[code]]></category>
		<category><![CDATA[iphone]]></category>

		<guid isPermaLink="false">http://www.smartergeek.com/2009/08/02/embedding-iphone-video/</guid>
		<description><![CDATA[Reposting this article &#8211; and tweeting it. It was originally published on Aug 2, 2009. Well I&#8217;ve been wanting to do this for a while so I finally sat down, googled around, looked at code, and figured out an easy way to embed iPhone video in html. First we need to detect the iPhone&#8217;s userAgent [...]]]></description>
			<content:encoded><![CDATA[<p></p><p><em><strong>Reposting this article &#8211; and tweeting it. It was originally published on Aug 2, 2009.<br />
</strong></em></p>
<p>Well I&#8217;ve been wanting to do this for a while so I finally sat down, <a href="http://www.google.com/search?q=embed+iphone+video&amp;ie=utf-8&amp;oe=utf-8&amp;aq=t&amp;rls=org.mozilla:en-US:official&amp;client=firefox-a" onclick="pageTracker._trackPageview('/outgoing/www.google.com/search?q=embed+iphone+video_amp_ie=utf-8_amp_oe=utf-8_amp_aq=t_amp_rls=org.mozilla_en-US_official_amp_client=firefox-a&amp;referer=');">googled around</a>, <a href="http://developer.apple.com/safari/library/documentation/AppleApplications/Reference/SafariWebContent/CreatingVideoforSafarioniPhone/CreatingVideoforSafarioniPhone.html" onclick="pageTracker._trackPageview('/outgoing/developer.apple.com/safari/library/documentation/AppleApplications/Reference/SafariWebContent/CreatingVideoforSafarioniPhone/CreatingVideoforSafarioniPhone.html?referer=');">looked at code</a>, and figured out an easy way to embed iPhone video in html.</p>
<p>First we need to detect the iPhone&#8217;s userAgent string and redirect to another page where we will embed the video.This script should go in the head area of your code. You can redirect to any page that you want.</p>
<div class="separator" style="clear: both; text-align: center;"><a style="margin-left: 1em; margin-right: 1em;" href="http://www.smartergeek.com/blog/uploaded_images/screenshot-iphone-script-redirect-740563.gif" rel="lightbox[169]" title="Embedding iPhone Video"><img src="http://www.smartergeek.com/blog/uploaded_images/screenshot-iphone-script-redirect-740562.gif" border="0" alt="" /></a></div>
<p>Next we need to embed the video along with a splash graphic when a user lands on the redirected page.</p>
<div class="separator" style="clear: both; text-align: center;"><a style="margin-left: 1em; margin-right: 1em;" href="http://www.smartergeek.com/blog/uploaded_images/screenshot-iphone-script-embed-796700.gif" rel="lightbox[169]" title="Embedding iPhone Video"><img src="http://www.smartergeek.com/blog/uploaded_images/screenshot-iphone-script-embed-796698.gif" border="0" alt="" /></a></div>
<p><a style="clear: right; float: right; margin-bottom: 1em; margin-left: 1em;" href="http://www.smartergeek.com/blog/uploaded_images/image-749502.jpg" rel="lightbox[169]" title="Embedding iPhone Video"><img src="http://www.smartergeek.com/blog/uploaded_images/image-749488.jpg" border="0" alt="" width="420" height="279" /></a>In the script you can see that I forced my image size to be 850 pixels wide. That allows the image to be large enough on the iPhone display to be seen well. Here is what the user sees on the iPhone display on the embedded video page.</p>
<p>There are also ways to do this via javascript, but I&#8217;ve found the embed method to be simple and straightforward.</p>
<p><a onclick="javascript: pageTracker._trackPageview('/downloads/iPhone-Video-Embed-Code.txt');" href="http://www.smartergeek.com/files/iPhone-Video-Embed-Code.txt">Source Code</a></p>
<p><a href="http://www.smartergeek.com/tutorials/VitoAshley/Ashley-Parallels-Network/">Sample Page</a> (visit on your mac/pc and then your iPhone)</p>
<!-- PHP 5.x -->]]></content:encoded>
			<wfw:commentRss>http://www.smartergeek.com/2009/08/02/embedding-iphone-video/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
