RTP on Android MediaPlayer

后端 未结 4 814
無奈伤痛
無奈伤痛 2020-12-31 13:12

I\'ve implemented RTSP on Android MediaPlayer using VLC as rtsp server with this code:

# vlc -vvv /home/marco/Videos/pippo.mp4 --sout 
#rtp{dst=192.168.100.         


        
4条回答
  •  隐瞒了意图╮
    2020-12-31 13:42

    Actually it's possible to play RTSP/RTP streams on Android by using a modified version of ExoPlayer which officially doesn't support RTSP/RTP (issue 55), however, there's an active pull request #3854 to add this support.

    In the meantime, you can clone the original authors exoplayer fork which does support RTSP (branch dev-v2-rtsp):

    git clone -b dev-v2-rtsp https://github.com/tresvecesseis/ExoPlayer.git.
    

    I've tested it and it works perfectly. The authors are working actively to fix the issues reported by many users and I hope that RTSP support at some point becomes part of the official exoplayer.

提交回复
热议问题