MediaPlayer m = new MediaPlayer(); m.setDataSource("rtsp://rtsp.yourserver.com/stream.mp3"); m.prepare(); m.start();
You probably want to call the prepare() statement from something other than your UI thread, because it may take awhile. Alternatively, you can call prepareAsync() and call start() from the onPreparedListener. On Dec 9, 12:42 pm, Jona <[EMAIL PROTECTED]> wrote: > Could someone help me figure out how to initialize the MediaPlayer to > play an RTSP link? The link is only audio there is no video... would > this matter? > > Thanksin Advance!!! > > Jona --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com 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 -~----------~----~----~----~------~----~------~--~---