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]
Announcing the new Android 0.9 SDK beta!
http://android-developers.blogspot.com/2008/08/announcing-beta-release-of-android-sdk.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---