bilibili / ijkplayer

Android/iOS video player based on FFmpeg n3.4, with MediaCodec, VideoToolbox support.
GNU General Public License v2.0
32.43k stars 8.11k forks source link

How to simplify the code to support for the rtsp protocol only? #2258

Open xuehancoder opened 7 years ago

xuehancoder commented 7 years ago

I unpack the code to the style of FrameWork,but the volume is too large ,so I want to simplify the code to support for the rtsp protocol only. How to do that?

bbcallen commented 7 years ago

Sorry, not familiar with rtsp.

mburger81 commented 7 years ago

Hi @xuehan111, did you found out a solution? Does it work also rtsp over http or https (rtspH)

I tried to use the example but on open an rtsph stream i got the error E/IJKMEDIA: rtsph://192.168.101.160/rtsp?id=1&channel=1&token=xxxxx: Protocol not found E/tv.danmaku.ijk.media.player.IjkMediaPlayer: Error (-10000,0)

I also configure this for codec support export COMMON_FF_CFG_FLAGS="$COMMON_FF_CFG_FLAGS --enable-decoder=pcm_alaw"