<?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: How to Play Movies from the Application Bundle or from a Remote Server (URL)</title>
	<atom:link href="http://iPhoneDeveloperTips.com/video/how-to-play-movies-from-application-bundle-or-from-a-remote-server-url.html/feed" rel="self" type="application/rss+xml" />
	<link>http://iPhoneDeveloperTips.com/video/how-to-play-movies-from-application-bundle-or-from-a-remote-server-url.html</link>
	<description>iOS Developer Tips, Tricks and Tutorials.</description>
	<lastBuildDate>Wed, 08 Feb 2012 06:31:16 -0600</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Dave</title>
		<link>http://iPhoneDeveloperTips.com/video/how-to-play-movies-from-application-bundle-or-from-a-remote-server-url.html#comment-49735</link>
		<dc:creator>Dave</dc:creator>
		<pubDate>Mon, 16 May 2011 19:21:49 +0000</pubDate>
		<guid isPermaLink="false">http://iPhoneDeveloperTips.com/?p=6691#comment-49735</guid>
		<description>Thanks dude!  Your docs are better than Apple&#039;s!!!  :)</description>
		<content:encoded><![CDATA[<p>Thanks dude!  Your docs are better than Apple&#8217;s!!!  :)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bill</title>
		<link>http://iPhoneDeveloperTips.com/video/how-to-play-movies-from-application-bundle-or-from-a-remote-server-url.html#comment-49439</link>
		<dc:creator>Bill</dc:creator>
		<pubDate>Thu, 12 May 2011 19:11:03 +0000</pubDate>
		<guid isPermaLink="false">http://iPhoneDeveloperTips.com/?p=6691#comment-49439</guid>
		<description>Thanks so much for the immediate reply, John. Your technique worked great. Looks like I got it down to a very small delay as well...

- (void) viewDidLoad
{
    [super viewDidLoad];
    [self performSelector:@selector(loadMoviePlayer) withObject:nil afterDelay:0.01];
}

seems to work fine.

Thanks again,

Bill</description>
		<content:encoded><![CDATA[<p>Thanks so much for the immediate reply, John. Your technique worked great. Looks like I got it down to a very small delay as well&#8230;</p>
<p>- (void) viewDidLoad<br />
{<br />
    [super viewDidLoad];<br />
    [self performSelector:@selector(loadMoviePlayer) withObject:nil afterDelay:0.01];<br />
}</p>
<p>seems to work fine.</p>
<p>Thanks again,</p>
<p>Bill</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: John Muchow</title>
		<link>http://iPhoneDeveloperTips.com/video/how-to-play-movies-from-application-bundle-or-from-a-remote-server-url.html#comment-49434</link>
		<dc:creator>John Muchow</dc:creator>
		<pubDate>Thu, 12 May 2011 18:31:09 +0000</pubDate>
		<guid isPermaLink="false">http://iPhoneDeveloperTips.com/?p=6691#comment-49434</guid>
		<description>It may be a timing issue with the views. In place of [self loadMoviePlayer] you could try tinkering with something like this:

[self performSelector:@selector(loadMoviePlayer) withObject:nil afterDelay:1]; 
</description>
		<content:encoded><![CDATA[<p>It may be a timing issue with the views. In place of [self loadMoviePlayer] you could try tinkering with something like this:</p>
<p>[self performSelector:@selector(loadMoviePlayer) withObject:nil afterDelay:1];</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bill</title>
		<link>http://iPhoneDeveloperTips.com/video/how-to-play-movies-from-application-bundle-or-from-a-remote-server-url.html#comment-49433</link>
		<dc:creator>Bill</dc:creator>
		<pubDate>Thu, 12 May 2011 18:24:26 +0000</pubDate>
		<guid isPermaLink="false">http://iPhoneDeveloperTips.com/?p=6691#comment-49433</guid>
		<description>Thanks very much for posting this. I would like to make the video start as soon as the app launches but I have been unsuccessful so far.

I tried calling [self loadMoviePlayer]; from within the TestViewController&#039;s viewDidLoad() but nothing happens. Am I missing something?

Thanks,

Bill</description>
		<content:encoded><![CDATA[<p>Thanks very much for posting this. I would like to make the video start as soon as the app launches but I have been unsuccessful so far.</p>
<p>I tried calling [self loadMoviePlayer]; from within the TestViewController&#8217;s viewDidLoad() but nothing happens. Am I missing something?</p>
<p>Thanks,</p>
<p>Bill</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Philip Borges</title>
		<link>http://iPhoneDeveloperTips.com/video/how-to-play-movies-from-application-bundle-or-from-a-remote-server-url.html#comment-44839</link>
		<dc:creator>Philip Borges</dc:creator>
		<pubDate>Sat, 26 Mar 2011 09:58:30 +0000</pubDate>
		<guid isPermaLink="false">http://iPhoneDeveloperTips.com/?p=6691#comment-44839</guid>
		<description>Hi,

Thank you for posting this. The sample code on playing movies from  Apple&#039;s iOS Reference Library doesn&#039;t work so I was glad that I found your site. I have a question though:

I&#039;ve built an RSS reader that plays video podcasts. It works fine when connected to WIFI network but stalls every 7 seconds to load when on 3G network. Therefore Apple rejected the app because it didn&#039;t comply with HTTP live streaming protocol. Now I&#039;ve added the MediaPlayer framework and your code but I&#039;m having troubles loading the vidoes.

Any ideas?

My Code:
   // Play movie from URL
    NSURL *movieURL = [NSURL URLWithString:[item objectForKey:@&quot;podcastLink&quot;]];
   
   mp = [[[MoviePlayerViewController alloc] initWithURL:movieURL] autorelease];

    // Show the movie player as modal
    [self presentModalViewController:mp animated:YES];

    // Prep and play the movie
    [mp readyPlayer];</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>Thank you for posting this. The sample code on playing movies from  Apple&#8217;s iOS Reference Library doesn&#8217;t work so I was glad that I found your site. I have a question though:</p>
<p>I&#8217;ve built an RSS reader that plays video podcasts. It works fine when connected to WIFI network but stalls every 7 seconds to load when on 3G network. Therefore Apple rejected the app because it didn&#8217;t comply with HTTP live streaming protocol. Now I&#8217;ve added the MediaPlayer framework and your code but I&#8217;m having troubles loading the vidoes.</p>
<p>Any ideas?</p>
<p>My Code:<br />
   // Play movie from URL<br />
    NSURL *movieURL = [NSURL URLWithString:[item objectForKey:@"podcastLink"]];</p>
<p>   mp = [[[MoviePlayerViewController alloc] initWithURL:movieURL] autorelease];</p>
<p>    // Show the movie player as modal<br />
    [self presentModalViewController:mp animated:YES];</p>
<p>    // Prep and play the movie<br />
    [mp readyPlayer];</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: John Muchow</title>
		<link>http://iPhoneDeveloperTips.com/video/how-to-play-movies-from-application-bundle-or-from-a-remote-server-url.html#comment-21331</link>
		<dc:creator>John Muchow</dc:creator>
		<pubDate>Tue, 27 Jul 2010 02:15:10 +0000</pubDate>
		<guid isPermaLink="false">http://iPhoneDeveloperTips.com/?p=6691#comment-21331</guid>
		<description>All the details are managed by the OS. All you need to provide is a URL to a movie in a format supported by the player. Common formats are .mov, .mp4, .mpv, and .3gp</description>
		<content:encoded><![CDATA[<p>All the details are managed by the OS. All you need to provide is a URL to a movie in a format supported by the player. Common formats are .mov, .mp4, .mpv, and .3gp</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Forrest</title>
		<link>http://iPhoneDeveloperTips.com/video/how-to-play-movies-from-application-bundle-or-from-a-remote-server-url.html#comment-20924</link>
		<dc:creator>Forrest</dc:creator>
		<pubDate>Fri, 23 Jul 2010 01:59:21 +0000</pubDate>
		<guid isPermaLink="false">http://iPhoneDeveloperTips.com/?p=6691#comment-20924</guid>
		<description>This can play online remote video ?  Just several questions:
1. What is the protocol ? 
2. Who manages downloading ?
3. What are supported video formats ?</description>
		<content:encoded><![CDATA[<p>This can play online remote video ?  Just several questions:<br />
1. What is the protocol ?<br />
2. Who manages downloading ?<br />
3. What are supported video formats ?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Wasif Malik</title>
		<link>http://iPhoneDeveloperTips.com/video/how-to-play-movies-from-application-bundle-or-from-a-remote-server-url.html#comment-20731</link>
		<dc:creator>Wasif Malik</dc:creator>
		<pubDate>Wed, 21 Jul 2010 06:17:12 +0000</pubDate>
		<guid isPermaLink="false">http://iPhoneDeveloperTips.com/?p=6691#comment-20731</guid>
		<description>Hi, thank you very much for sharing the source code.

I will definitely try this out tonight.</description>
		<content:encoded><![CDATA[<p>Hi, thank you very much for sharing the source code.</p>
<p>I will definitely try this out tonight.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

