Android streaming audio/video can’t stream a rtsp file

androidrtspstreamingvideo

I want to stream a media file on web, and android developer website has said that MediaPlayer.setDataSource() can set the data source (file-path or http/rtsp URL) to use.
But I got an error in both G1 device and emulator when streaming a rtsp url file: Command PLAYER_PREPARE completed with an error or info PVMFailure error(1, -1).

Does anyone know what is this error, or anyone knows where can I get the error description (1, -1) means?

P.S. the code can work successfully when playing a audio/video file or streaming a http protocal sudio/video file, but can't stream rtsp protocal file. Is android not supported rtsp streaming?

Thanks very much.

Best Answer

I don't think the emulator supports video at all, or didn't last time I checked (SDK 1.0 and 1.1) which failed with the exact same error. I'm not sure about 1.5 but from your report it sounds like it still doesn't.

Of course, I could be wrong, but when making beebPlayer, I found it was just easier to deploy straight to the device!

Related Topic