perrystreetsoftware / react-native-rtmpview

Show RTMP views on iOS + Android using React Native
MIT License
98 stars 16 forks source link

Can not play a rtsp URL on Android #18

Closed ghost closed 5 years ago

ghost commented 5 years ago

Please give me some advices for the bug when running rtsp url on Android

"error": "com.google.android.exoplayer2.ExoPlaybackException: net.butterflytv.rtmp_client.RtmpClient$RtmpIOException: RTMP error: -12"

react-native: 0.61

ext {
        buildToolsVersion = "28.0.3"
        minSdkVersion = 17
        compileSdkVersion = 28
        targetSdkVersion = 28
        exoPlayerVersion = "2.10.5"
    }
esilverberg commented 5 years ago

This looks like an exoplayer issue --

https://github.com/ant-media/LibRtmp-Client-for-Android/issues/65

You could try using a new or different version of ExoPlayer with this library.

ghost commented 5 years ago

@esilverberg Thanks for your answer. I've tried latest version of ExoPlayer which is 2.10.5, but it seem doesn't work.

esilverberg commented 5 years ago

What about an older version of ExoPlayer?

ghost commented 5 years ago

@esilverberg I found that it works for normal RTSP link like rtmp://fms.105.net/live/rmc1. But it is not works with url like rtsp://admin:admin@xxx.xxx.

esilverberg commented 5 years ago

https://github.com/google/ExoPlayer/issues/55