I have seen conflicting reports about this, but at least one which
says it's possible. My code looks like the following (although I've
tried a different method with the same results:
MediaPlayer player = new MediaPlayer ();
if (player != null)
{
try
{
Log.d (TAG, "Player created.");
player.reset ();
player.setDataSource (URL);
player.prepare ();
player.start ();
}
catch (Exception e)
{
Log.d (TAG, "Exception: " +
e.getLocalizedMessage ());
}
}
I've used two different URLs that look like:
rtsp://site.com/stream.sdp
http://site.com:3000/stream.m3u
In all cases (both in emulator and on HTC Evo) prepare() throws an
exception (status=0x1). Anyone know what's going on?
Thanks,
Joe
--
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