Any idea when RTSP will be fixed?
Or, at least some form of MP3 streaming? Happy to retrieve directly
via HTTP if necessary, but my app absolutely _requires_ live, ongoing
mp3 streaming at a minimum. It's strange to me that it wouldn't work,
given Android's out-of-the-box support for streaming video formats
like 3GPP/MP4/etc directly.
Don't make me rewrite it for iPhone ;-)
Cheers,
Dan
On Aug 29, 4:58 am, "Justin (Google Employee)" <[EMAIL PROTECTED]>
wrote:
> I don't believe RTSP will work in the emulator. The emulator currently
> has some issues with handling UDP packets, which RTSP uses. Sorry.
>
> Regards,
> Justin
> Android Team @ Google
>
> On Aug 28, 3:02 am, jayant <[EMAIL PROTECTED]> wrote:
>
> > Hi All,
>
> > Can anyone post an rtsp link which works fine..
> > gunaaa, can you please provide the external URL that was played..
>
> > All I am doing here is setting the path variable in the API
> > Demo(MediaPlayerDemo) example to different links
>
> > But none seems to work...In the error log I am getting following
> > error:
> > 08-28 15:08:59.894: ERROR/MediaPlayerDemo(749): error: Prepare
> > failed.: status=0xFFFFFFFF
>
> > Justin, can you plz explain this:
>
> > code snippet:
>
> > *************************************************************************************************************
> > case STREAM_VIDEO:
> > /*
> > * TODO: Set path variable to progressive
> > streamable mp4 or
> > * 3gpp format URL. Http protocol should be used.
> > * Mediaplayer can only play "progressive
> > streamable
> > * contents" which basically means: 1. the movie
> > atom has to
> > * precede all the media data atoms. 2. The clip
> > has to be
> > * reasonably interleaved.
> > *
> > */
>
> > path = "rtsp://172.17.5.81:80/
> > sample_h264_100kbit.mp4";
> > if (path == "") {
> > // Tell the user to provide a media file URL.
> > Toast
> > .makeText(
> > MediaPlayerDemo_Video.this,
> > "Please edit
> > MediaPlayerDemo_Video Activity,"
> > + " and set the path
> > variable to your media file URL.",
> > Toast.LENGTH_LONG).show();
>
> > }
>
> > break;
>
> > }
>
> > // Create a new media player and set the listeners
> > mMediaPlayer = new MediaPlayer();
> > mMediaPlayer.setDataSource(path);
> > // dialog.setMessage("set data source"+path);
> > // dialog.show();
> > mMediaPlayer.setDisplay(holder);
> > mMediaPlayer.prepare();
> > mMediaPlayer.setOnBufferingUpdateListener(this);
> > mMediaPlayer.setOnCompletionListener(this);
> > mMediaPlayer.setOnPreparedListener(this);
>
> > mMediaPlayer.setAudioStreamType(AudioManager.STREAM_MUSIC);
>
> > **********************************************************************************************************************
> > On Aug 26, 12:01 pm, gunaaa <[EMAIL PROTECTED]> wrote:
>
> > > Try Using Streams from any external URL... it will play your file...
> > > Changing the format is time expensive...
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" 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-developers?hl=en
-~----------~----~----~----~------~----~------~--~---