Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exoplayer - unable to display RTSP url (Black screen) #1069

Closed
QuentinCln opened this issue Jun 14, 2018 · 4 comments
Closed

Exoplayer - unable to display RTSP url (Black screen) #1069

QuentinCln opened this issue Jun 14, 2018 · 4 comments

Comments

@QuentinCln
Copy link

QuentinCln commented Jun 14, 2018

Current behavior

unable to display video (Black screen) when uri source is set to an RSTP uri
Same behavior with Android MediaPlayer.

react-native: 0.55.4
react-native-video: 2.1.1

Reproduction steps

Also tried to pass const isNetwork = !!(uri && uri.match(/^https?:/)); to true, but no effect

        <Video
            source={{
              uri: "rtsp://184.72.239.149/vod/mp4:BigBuckBunny_175k.mov"
              // uri: "rtsp://95.253.236.60/live/ch00_0"
            }}
            rate={1.0}
            volume={1.0}
            muted={false}
            paused={false}
            resizeMode="cover"
            repeat={true}
            onLoadStart={() => {
              console.log("onLoadStart");
            }}
            onLoad={() => {
              console.log("onLoad");
            }}
            onProgress={() => {
              console.log("onProgress");
            }}
            onEnd={() => {
              console.log("onEnd");
            }}
            onError={() => console.log("onError")}
            onBuffer={() => console.log("isBuffering")}
            style={{ width: Dimensions.get("window").width, height: 300 }}
          />

Platform

Which player are you experiencing the problem on:
Ubuntu, physical Android device
Android ExoPlayer

Video sample

rtsp://184.72.239.149/vod/mp4:BigBuckBunny_175k.mov
rtsp://95.253.236.60/live/ch00_0

@QuentinCln QuentinCln changed the title Exoplayer - RTSP url won't play (Black screen) Exoplayer - unable to display RTSP url (Black screen) Jun 14, 2018
@cobarx
Copy link
Contributor

cobarx commented Jun 20, 2018

@QuentinCln Per google/ExoPlayer#55, RTSP isn't supported by ExoPlayer yet, however there is a PR open to add support in google/ExoPlayer#3854. Once that lands and ExoPlayer puts out a new release that includes that PR, we should be able to get support automatically. I'll keep an eye on it and update. Clearly we need to document which formats are supported on which players, I'll add that to my list of things to do.

@pheromone That URL isn't a RTSP URL. Please open a separate issue for this and add info about what kind of error you are getting. That URL is working fine for me.

@QuentinCln
Copy link
Author

Thanks @cobarx for the informations. I finally made a wrapper around VideoView that manages RTSP
meanwhile

@joshuapinter
Copy link

@QuentinCln Checking in 8 months latest and ExoPlayer still hasn't merged in that PR for RTSP support.

Any chance you can elaborate on your VideoView wrapper solution?

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants