1

当我打开 RTSP 流时,MediaPlayer 将抛出错误 1,-1005 - ERROR_CONNECTION_LOST(通过http://android.joao.jp/2011/07/mediaplayer-errors.html ):

E/MediaPlayer(27899): Error (1,-1005)
D/VideoView(27899): Error: 1,-1005

但是 Vitamio 这个流会播放,但会出现错误:

E/Vitamio(27899): Couldn't open file on client side, trying server side rtsp://host:80/path_to_file.mp4 (unfortunately can't give video link)

Vitamio 会给我一些有趣的调试信息:

D/Vitamio[Player](27899): [rtsp @ 0x347630] UDP timeout, retrying with TCP
D/Vitamio[Player](27899): [rtsp @ 0x347630] Estimating duration from bitrate, this may be inaccurate

最后它会播放视频。哪一边有错误?如何解决这样的问题?

4

0 回答 0