below is the error i am getting when i am trying to play
http://www.1.fm/player/energybbfm32k.asx
07-27 20:30:49.182: ERROR/PlayerDriver(542): Command PLAYER_INIT
completed with an error or info PVMFFailure
and My code is :
MediaPlayer mp = new MediaPlayer();
String path = "http://www.1.fm/player/energybbfm32k.asx
String str=path;
Uri uri = Uri.parse(str);
mp.setDataSource(this,uri);
mp.setOnPreparedListener(this);
mp.prepareAsync();
public void onPrepared(MediaPlayer mp) {
// TODO Auto-generated method stub
mp.start();
}
any idea what is going wrong?
Regards
On Jul 27, 7:41 pm, Mark Murphy <[email protected]> wrote:
> Android2009 wrote:
> > When we are actually trying .. we are getting lot of exceptions ...
> > Any idea where can i find a sample application for streaming??
>
> For video, yes:
>
> https://github.com/commonsguy/vidtry/tree
>
> I have only tried this with HTTP streaming, not RTSP. Also:
>
> -- Something that fails on the emulator may well succeed on hardware,
> due to hardware acceleration on devices compared to basic video access
> in qemu. For example, vidtry will not play some 3GP videos streamed over
> HTTP that work just fine on a G1 or Ion.
>
> -- At least for HTTP streaming, media has to be specially prepared for
> streaming purposes (e.g., MP4 needs the moov atom before the mdat atom,
> if I recall correctly).
>
> -- RTSP support is apparently limited to the spec. For example, my
> understanding is that some people have MP3 streaming over RTSP, even
> though MP3 is not a valid RTSP codec according to the standard used by
> OpenCORE (the Android media playback engine, from PacketVideo). If you
> deviate from the spec, Android is less likely to play it.
>
> --
> Mark Murphy (a Commons
> Guy)http://commonsware.com|http://twitter.com/commonsguy
>
> Need help for your Android OSS project?http://wiki.andmob.org/hado
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Android Discuss" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-discuss?hl=en
-~----------~----~----~----~------~----~------~--~---