<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
		>
<channel>
	<title>Comments on: Android Streaming MediaPlayer Tutorial &#8211; Updated to v1.5 (Cupcake)</title>
	<atom:link href="http://blog.pocketjourney.com/2009/12/27/android-streaming-mediaplayer-tutorial-updated-to-v1-5-cupcake/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.pocketjourney.com/2009/12/27/android-streaming-mediaplayer-tutorial-updated-to-v1-5-cupcake/</link>
	<description>Know Anywhere</description>
	<lastBuildDate>Wed, 21 Jul 2010 14:23:07 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
	<item>
		<title>By: chinmay</title>
		<link>http://blog.pocketjourney.com/2009/12/27/android-streaming-mediaplayer-tutorial-updated-to-v1-5-cupcake/#comment-688</link>
		<dc:creator>chinmay</dc:creator>
		<pubDate>Fri, 09 Jul 2010 13:49:52 +0000</pubDate>
		<guid isPermaLink="false">http://blog.pocketjourney.com/?p=68#comment-688</guid>
		<description>Hi Mitu,

Can you please let me know what did you do in order to remove that error ? I am having the same problem.

Thanks,
Chinmay</description>
		<content:encoded><![CDATA[<p>Hi Mitu,</p>
<p>Can you please let me know what did you do in order to remove that error ? I am having the same problem.</p>
<p>Thanks,<br />
Chinmay</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: arlen</title>
		<link>http://blog.pocketjourney.com/2009/12/27/android-streaming-mediaplayer-tutorial-updated-to-v1-5-cupcake/#comment-686</link>
		<dc:creator>arlen</dc:creator>
		<pubDate>Sat, 03 Jul 2010 03:11:41 +0000</pubDate>
		<guid isPermaLink="false">http://blog.pocketjourney.com/?p=68#comment-686</guid>
		<description>hi , 
Is there any direct link that I can download all the MyNPR or npr files like a zip file ?</description>
		<content:encoded><![CDATA[<p>hi ,<br />
Is there any direct link that I can download all the MyNPR or npr files like a zip file ?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Biosopher</title>
		<link>http://blog.pocketjourney.com/2009/12/27/android-streaming-mediaplayer-tutorial-updated-to-v1-5-cupcake/#comment-682</link>
		<dc:creator>Biosopher</dc:creator>
		<pubDate>Wed, 30 Jun 2010 19:22:22 +0000</pubDate>
		<guid isPermaLink="false">http://blog.pocketjourney.com/?p=68#comment-682</guid>
		<description>Hi Arlen,

CatDaaaady posted this comment on another one of my postings.  It&#039;s useful to you and everyone else:

&quot;With the android app I have been running, MyNPR, I used Biosopher’s code to get me going playing a live stream of local npr stations.
My code is here (http://code.google.com/p/mynpr/source/browse/#svn/trunk/mynpr/src/com/webeclubbin/mynpr)
Yesterday, NPR released the code for the official NPR app for Android.
Why is this so great? Because they have real live streaming for stations. No saving files locally and playing them in a queue!
But there is a catch… it is currently not working in the app. BUT looking at their code we can see the direction they are going.

Basically they are doing what I thought I would have to do to make it all work with out saving files. Take the live stream , repackage the packets into something the mediaplayer can use, then send it to the mediaplayer. I was thinking of converting the live stream to some sort of rtps stream. But NPR is doing something different. I am not sure what though. Check the links below for the code.

Funny side note: I swear some of their code is “very” close to Biosopher’s code . Even down to the variable names.  

Playback service (where I see some similar code, check lines 328-337)
http://www.google.com/codesearch/p?hl=en#iRbh2QlHRWY/trunk/Npr/src/org/npr/android/news/PlaybackService.java&amp;q=mediaplayer%20package:http://npr-android-app%5C.googlecode%5C.com&amp;sa=N&amp;cd=1&amp;ct=rc

Code that translates the live stream:
http://www.google.com/codesearch/p?hl=en#iRbh2QlHRWY/trunk/Npr/src/org/npr/android/news/StreamProxy.java&amp;q=mediaplayer%20package:http://npr-android-app%5C.googlecode%5C.com&amp;d=7

Announcement:
http://www.npr.org/blogs/inside/2010/06/02/127366098/npr-android-and-you
http://code.google.com/p/npr-android-app/source/browse/#svn/trunk/Npr/src/org/npr/android</description>
		<content:encoded><![CDATA[<p>Hi Arlen,</p>
<p>CatDaaaady posted this comment on another one of my postings.  It&#8217;s useful to you and everyone else:</p>
<p>&#8220;With the android app I have been running, MyNPR, I used Biosopher’s code to get me going playing a live stream of local npr stations.<br />
My code is here (<a href="http://code.google.com/p/mynpr/source/browse/#svn/trunk/mynpr/src/com/webeclubbin/mynpr" rel="nofollow">http://code.google.com/p/mynpr/source/browse/#svn/trunk/mynpr/src/com/webeclubbin/mynpr</a>)<br />
Yesterday, NPR released the code for the official NPR app for Android.<br />
Why is this so great? Because they have real live streaming for stations. No saving files locally and playing them in a queue!<br />
But there is a catch… it is currently not working in the app. BUT looking at their code we can see the direction they are going.</p>
<p>Basically they are doing what I thought I would have to do to make it all work with out saving files. Take the live stream , repackage the packets into something the mediaplayer can use, then send it to the mediaplayer. I was thinking of converting the live stream to some sort of rtps stream. But NPR is doing something different. I am not sure what though. Check the links below for the code.</p>
<p>Funny side note: I swear some of their code is “very” close to Biosopher’s code . Even down to the variable names.  </p>
<p>Playback service (where I see some similar code, check lines 328-337)<br />
<a href="http://www.google.com/codesearch/p?hl=en#iRbh2QlHRWY/trunk/Npr/src/org/npr/android/news/PlaybackService.java&amp;q=mediaplayer%20package:http://npr-android-app%5C.googlecode%5C.com&amp;sa=N&amp;cd=1&amp;ct=rc" rel="nofollow">http://www.google.com/codesearch/p?hl=en#iRbh2QlHRWY/trunk/Npr/src/org/npr/android/news/PlaybackService.java&amp;q=mediaplayer%20package:http://npr-android-app%5C.googlecode%5C.com&amp;sa=N&amp;cd=1&amp;ct=rc</a></p>
<p>Code that translates the live stream:<br />
<a href="http://www.google.com/codesearch/p?hl=en#iRbh2QlHRWY/trunk/Npr/src/org/npr/android/news/StreamProxy.java&amp;q=mediaplayer%20package:http://npr-android-app%5C.googlecode%5C.com&amp;d=7" rel="nofollow">http://www.google.com/codesearch/p?hl=en#iRbh2QlHRWY/trunk/Npr/src/org/npr/android/news/StreamProxy.java&amp;q=mediaplayer%20package:http://npr-android-app%5C.googlecode%5C.com&amp;d=7</a></p>
<p>Announcement:<br />
<a href="http://www.npr.org/blogs/inside/2010/06/02/127366098/npr-android-and-you" rel="nofollow">http://www.npr.org/blogs/inside/2010/06/02/127366098/npr-android-and-you</a><br />
<a href="http://code.google.com/p/npr-android-app/source/browse/#svn/trunk/Npr/src/org/npr/android" rel="nofollow">http://code.google.com/p/npr-android-app/source/browse/#svn/trunk/Npr/src/org/npr/android</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: arlen</title>
		<link>http://blog.pocketjourney.com/2009/12/27/android-streaming-mediaplayer-tutorial-updated-to-v1-5-cupcake/#comment-680</link>
		<dc:creator>arlen</dc:creator>
		<pubDate>Wed, 30 Jun 2010 17:43:16 +0000</pubDate>
		<guid isPermaLink="false">http://blog.pocketjourney.com/?p=68#comment-680</guid>
		<description>Hi, Thank you for the source code it was gr8
I have a question,
How can I stream a radio station via android insted of streaming mp3 files .
something like this one :

http://mfile.akamai.com/2110/live/reflector:20637.asx?bkup=21011
.asx file types.</description>
		<content:encoded><![CDATA[<p>Hi, Thank you for the source code it was gr8<br />
I have a question,<br />
How can I stream a radio station via android insted of streaming mp3 files .<br />
something like this one :</p>
<p><a href="http://mfile.akamai.com/2110/live/reflector:20637.asx?bkup=21011" rel="nofollow">http://mfile.akamai.com/2110/live/reflector:20637.asx?bkup=21011</a><br />
.asx file types.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: hema</title>
		<link>http://blog.pocketjourney.com/2009/12/27/android-streaming-mediaplayer-tutorial-updated-to-v1-5-cupcake/#comment-676</link>
		<dc:creator>hema</dc:creator>
		<pubDate>Mon, 21 Jun 2010 14:08:03 +0000</pubDate>
		<guid isPermaLink="false">http://blog.pocketjourney.com/?p=68#comment-676</guid>
		<description>and also android code to display pdf files pdf files on the emulator........</description>
		<content:encoded><![CDATA[<p>and also android code to display pdf files pdf files on the emulator&#8230;&#8230;..</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: hema</title>
		<link>http://blog.pocketjourney.com/2009/12/27/android-streaming-mediaplayer-tutorial-updated-to-v1-5-cupcake/#comment-675</link>
		<dc:creator>hema</dc:creator>
		<pubDate>Mon, 21 Jun 2010 14:06:36 +0000</pubDate>
		<guid isPermaLink="false">http://blog.pocketjourney.com/?p=68#comment-675</guid>
		<description>can anyone send me code for playing a list of audio mp3 files dat are present in sdcard .........</description>
		<content:encoded><![CDATA[<p>can anyone send me code for playing a list of audio mp3 files dat are present in sdcard &#8230;&#8230;&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Biosopher</title>
		<link>http://blog.pocketjourney.com/2009/12/27/android-streaming-mediaplayer-tutorial-updated-to-v1-5-cupcake/#comment-651</link>
		<dc:creator>Biosopher</dc:creator>
		<pubDate>Tue, 25 May 2010 19:13:38 +0000</pubDate>
		<guid isPermaLink="false">http://blog.pocketjourney.com/?p=68#comment-651</guid>
		<description>Thanks Tiger,

I get rather tired of answering questions for people that are simply too lazy to even read the tutorial.

Cheers,
Anthony</description>
		<content:encoded><![CDATA[<p>Thanks Tiger,</p>
<p>I get rather tired of answering questions for people that are simply too lazy to even read the tutorial.</p>
<p>Cheers,<br />
Anthony</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: tiger</title>
		<link>http://blog.pocketjourney.com/2009/12/27/android-streaming-mediaplayer-tutorial-updated-to-v1-5-cupcake/#comment-650</link>
		<dc:creator>tiger</dc:creator>
		<pubDate>Tue, 25 May 2010 14:45:24 +0000</pubDate>
		<guid isPermaLink="false">http://blog.pocketjourney.com/?p=68#comment-650</guid>
		<description>I&#039;m not Biosopher, but I can see the following in your errors :
05-13 17:11:15.920: ERROR/PlayerDriver(31): Command PLAYER_SET_DATA_SOURCE completed with an error or info PVMFErrNotSupported

And I have a very very advanced feature on my mouse : a scrollwheel it&#039;s called.. with that I actually (yes yes) can scroll up and down in a page, that in combination with another very special feature I have (called eyes) I can see this :
http://blog.pocketjourney.com/2009/12/27/android-streaming-mediaplayer-tutorial-updated-to-v1-5-cupcake/#comment-608

also you actually might want to read the tutorial itself, and you will notice something about your
mp.setDataSource(“/sdcard/playsong.wma”);
code...</description>
		<content:encoded><![CDATA[<p>I&#8217;m not Biosopher, but I can see the following in your errors :<br />
05-13 17:11:15.920: ERROR/PlayerDriver(31): Command PLAYER_SET_DATA_SOURCE completed with an error or info PVMFErrNotSupported</p>
<p>And I have a very very advanced feature on my mouse : a scrollwheel it&#8217;s called.. with that I actually (yes yes) can scroll up and down in a page, that in combination with another very special feature I have (called eyes) I can see this :<br />
<a href="http://blog.pocketjourney.com/2009/12/27/android-streaming-mediaplayer-tutorial-updated-to-v1-5-cupcake/#comment-608" rel="nofollow">http://blog.pocketjourney.com/2009/12/27/android-streaming-mediaplayer-tutorial-updated-to-v1-5-cupcake/#comment-608</a></p>
<p>also you actually might want to read the tutorial itself, and you will notice something about your<br />
mp.setDataSource(“/sdcard/playsong.wma”);<br />
code&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: venkat</title>
		<link>http://blog.pocketjourney.com/2009/12/27/android-streaming-mediaplayer-tutorial-updated-to-v1-5-cupcake/#comment-644</link>
		<dc:creator>venkat</dc:creator>
		<pubDate>Thu, 13 May 2010 11:45:09 +0000</pubDate>
		<guid isPermaLink="false">http://blog.pocketjourney.com/?p=68#comment-644</guid>
		<description>Hi Biosopher 

i am using absolute path to play a file which resides in sd card

mp.reset();		
mp.setDataSource(&quot;/sdcard/playsong.wma&quot;);
mp.prepare();
mp.start();

the following errors are coming up.
i think its throwing error at mp.prepare();
could pls help me out??????

05-13 17:11:15.911: WARN/MediaPlayer(5567): info/warning (1, 26)
05-13 17:11:15.911: INFO/MediaPlayer(5567): Info (1,26)
05-13 17:11:15.920: ERROR/PlayerDriver(31): Command PLAYER_SET_DATA_SOURCE completed with an error or info PVMFErrNotSupported
05-13 17:11:15.930: ERROR/MediaPlayer(5567): error (1, -4)
05-13 17:11:15.930: WARN/System.err(5567): java.io.IOException: Prepare failed.: status=0x1
05-13 17:11:15.959: WARN/PlayerDriver(31): PVMFInfoErrorHandlingComplete
05-13 17:11:15.969: WARN/System.err(5567):     at android.media.MediaPlayer.prepare(Native Method)
05-13 17:11:15.969: WARN/System.err(5567):     at com.androplayer1.PlayerService.Playsong(PlayerService.java:92)
05-13 17:11:15.980: WARN/System.err(5567):     at com.androplayer1.PlayerService$1.playFile(PlayerService.java:53)
05-13 17:11:15.990: WARN/System.err(5567):     at com.androplayer1.InterFac$Stub.onTransact(InterFac.java:57)
05-13 17:11:15.990: WARN/System.err(5567):     at android.os.Binder.execTransact(Binder.java:287)
05-13 17:11:16.000: WARN/System.err(5567):     at dalvik.system.NativeStart.run(Native Method)</description>
		<content:encoded><![CDATA[<p>Hi Biosopher </p>
<p>i am using absolute path to play a file which resides in sd card</p>
<p>mp.reset();<br />
mp.setDataSource(&#8220;/sdcard/playsong.wma&#8221;);<br />
mp.prepare();<br />
mp.start();</p>
<p>the following errors are coming up.<br />
i think its throwing error at mp.prepare();<br />
could pls help me out??????</p>
<p>05-13 17:11:15.911: WARN/MediaPlayer(5567): info/warning (1, 26)<br />
05-13 17:11:15.911: INFO/MediaPlayer(5567): Info (1,26)<br />
05-13 17:11:15.920: ERROR/PlayerDriver(31): Command PLAYER_SET_DATA_SOURCE completed with an error or info PVMFErrNotSupported<br />
05-13 17:11:15.930: ERROR/MediaPlayer(5567): error (1, -4)<br />
05-13 17:11:15.930: WARN/System.err(5567): java.io.IOException: Prepare failed.: status=0&#215;1<br />
05-13 17:11:15.959: WARN/PlayerDriver(31): PVMFInfoErrorHandlingComplete<br />
05-13 17:11:15.969: WARN/System.err(5567):     at android.media.MediaPlayer.prepare(Native Method)<br />
05-13 17:11:15.969: WARN/System.err(5567):     at com.androplayer1.PlayerService.Playsong(PlayerService.java:92)<br />
05-13 17:11:15.980: WARN/System.err(5567):     at com.androplayer1.PlayerService$1.playFile(PlayerService.java:53)<br />
05-13 17:11:15.990: WARN/System.err(5567):     at com.androplayer1.InterFac$Stub.onTransact(InterFac.java:57)<br />
05-13 17:11:15.990: WARN/System.err(5567):     at android.os.Binder.execTransact(Binder.java:287)<br />
05-13 17:11:16.000: WARN/System.err(5567):     at dalvik.system.NativeStart.run(Native Method)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Biosopher</title>
		<link>http://blog.pocketjourney.com/2009/12/27/android-streaming-mediaplayer-tutorial-updated-to-v1-5-cupcake/#comment-638</link>
		<dc:creator>Biosopher</dc:creator>
		<pubDate>Fri, 30 Apr 2010 13:51:17 +0000</pubDate>
		<guid isPermaLink="false">http://blog.pocketjourney.com/?p=68#comment-638</guid>
		<description>Hi Jeremy,

Unfortunately I&#039;m not experienced enough with live streaming to conclude yea/nay on whether Android can stream live.  Given the numerous questions on this tutorial though, it seems Android doesn&#039;t readily support live streaming out of the box.

Anthony</description>
		<content:encoded><![CDATA[<p>Hi Jeremy,</p>
<p>Unfortunately I&#8217;m not experienced enough with live streaming to conclude yea/nay on whether Android can stream live.  Given the numerous questions on this tutorial though, it seems Android doesn&#8217;t readily support live streaming out of the box.</p>
<p>Anthony</p>
]]></content:encoded>
	</item>
</channel>
</rss>
