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.