I want to transfer a media file on the Internet, and the Android developer website said that MediaPlayer.setDataSource() can set the data source (file path or http / rtsp URL) to use. But I got an error both in the G1 device and in the emulator when streaming the URL of the rtsp: Command PLAYER_PREPARE with an error or PVMFailure (1, -1) error information.
Does anyone know what this error is, or does anyone know where I can get a description of the error (1, -1) means?
PS code can work successfully when playing an audio / video file or streaming a protocal sudio / video file, but it cannot transfer a protots rtsp file. Is android support supported without rtsp support?
Thank you very much.
Allen
source share