Android audio / video streaming cannot transfer rtsp file?

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.

+4
source share
4 answers

I do not think that the emulator supports video at all or not the last time I checked (SDK 1.0 and 1.1) that did not match the same error. I'm not sure about 1.5, but from your report it sounds like it isn’t there yet.

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

+3
source
 Is android not supported rtsp streaming? 

No, Android supports RTSP streaming. I installed the Darwin Streaming Server (an open RTP / RTSP server with a streaming stream) and successfully played the video (on my ADP2 with a donut image) using RTSP Url. The url I used is:

 rtsp://server_ip:554/file_name 

Some sample files have already been provided while the server is set up and you can try playing. If you want to play your file, first you need to pounce on them first.

+1
source

I am also facing the same problem. In one blog, they say that it supports an RTSP stream that satisfies a set of rules. I do not know which RTSP URL supports all of these rules. So what I did, I wrote my own RTSP client to receive streams, and I passed it to the Player.

0
source

Today I got new information, it seems that the Android OPENCore has some errors in streaming, and the newer version 2.04 fixed these problems, but I can not find which version now has my code. someone said that ChangeLog has version information (/ external / opencore / ChangeLog), but I cannot find where this ChangeLog file is located. Does anyone know where this file is located, and how can I update the version of OPENCore? Thanks

0
source

All Articles