Football Fans: Download the 2012 Schedule App from Google Play!


Go Back   Android Forums > Android Discussion > Android Media

Android Media For Ringtones, Video, TV, Audio or anything else Multimedia related...



Reply
 
LinkBack Thread Tools
Old November 25th, 2011, 06:58 PM   #1 (permalink)
New Member
 
Join Date: Nov 2011
Posts: 6
 
Device(s):
Thanks: 0
Thanked 2 Times in 2 Posts
Default Live Stream Help

Hello all,

I made a MediaPlayer that plays a live stream, it worked perfectly, until I had to install on an Android 2.2 (Froyo) which did not work, he gets caught while invoking prepare and also prepareAsync, not error, but does not touch anything.

Poll Finds that this is a bug in version 2.2, which I understand was done until a correction in android.kernel.org, but I think it was not distributed to the phones through the carriers.

Well, I wonder if anyone has used or uses another method, such as Shoutcast satisfactorily and could give me a hint or even share the code so I can test it.

I tried to follow a tutorial Shoutcast and implement a variety of ways, but it is not so perfect, giving notice when the audio is exchanged.

Note: No emulator works, but not the device.

Thanks for any help that is sent.
[] 'S
Mitch

fsjr is offline  
Reply With Quote
Sponsors
Old December 6th, 2011, 05:52 PM   #2 (permalink)
New Member
 
Join Date: Dec 2011
Posts: 6
 
Device(s):
Thanks: 2
Thanked 0 Times in 0 Posts
Default

I wish I could help. Im in the same situation, but Im trying to build a live stream app but need to find tutorials on it. I was woundering if you can help me out with any info? my email is jamestisby@yahoo.com. im trying to get my live url playing on a app.
Thank for any help
jamestisby is offline  
Reply With Quote
Old December 6th, 2011, 06:03 PM   #3 (permalink)
New Member
 
Join Date: Nov 2011
Posts: 6
 
Device(s):
Thanks: 0
Thanked 2 Times in 2 Posts
Default

Coincidence, I would leave the solution in the forum this week.

To play free stream at 2.2 or less, you should use a local proxy, for example, this project here ...

I hope that helped.
fsjr is offline  
Reply With Quote
The Following User Says Thank You to fsjr For This Useful Post:
jamestisby (December 13th, 2011)
Old December 13th, 2011, 12:05 PM   #4 (permalink)
New Member
 
Join Date: Dec 2011
Posts: 6
 
Device(s):
Thanks: 2
Thanked 0 Times in 0 Posts
Default

I didn't get the project.
jamestisby is offline  
Reply With Quote
Old December 13th, 2011, 05:45 PM   #5 (permalink)
New Member
 
Join Date: Nov 2011
Posts: 6
 
Device(s):
Thanks: 0
Thanked 2 Times in 2 Posts
Default

Quote:
Originally Posted by jamestisby View Post
I didn't get the project.
Here is the class StreamProxy

So use something like...

Code:
...
int sdkVersion = 0;
try {
   sdkVersion = Integer.parseInt(Build.VERSION.SDK);
} 
catch (NumberFormatException ignored) { }
if (sdkVersion <= 8) {
if (proxy == null) {
   proxy = new StreamProxy();
   proxy.init();	 	       
   proxy.start();
}
url= String.format("http://127.0.0.1:%d/%s", proxy.getPort(), url);
}
mediaPlayer = new MediaPlayer();
mediaPlayerLive.setDataSource(url);
...
...
fsjr is offline  
Reply With Quote
The Following User Says Thank You to fsjr For This Useful Post:
jamestisby (January 6th, 2012)
Reply

Bookmarks


Go Back   Android Forums > Android Discussion > Android Media User CP
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -5. The time now is 03:17 AM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
Custom vBulletin Skins by: Relivo