alann-sapone / react-native-gst-player

Universal video/audio player based on GStreamer native library
5 stars 6 forks source link

Video not displaying #2

Closed billylindeman closed 4 years ago

billylindeman commented 4 years ago

Hello there,

This library looks like its well structured and I'm excited to use it! I tried putting together a sample application similar to how https://github.com/Kalyzee/react-native-gstreamer works, but I'm not seeing any video playing (the view is just blank/black).

     <GstPlayer
        style={styles.videoPlayer}
        parseLaunchPipeline="videotestsrc ! glimagesink"
        pipelineState={4}
      />

Is there anything special necessary to make this work? It seems like the pipeline is up and running given the log output

2019-12-11 14:57:11.951383-0800 chakra[3096:2803708] RCTGstPlayerController (1 - IOS code) - Pipeline state changed from NULL to READY.
RCTGstPlayerController (1 - Native code) : New state from 'glcolorbalance0' : READY -> PAUSED (VOID_PENDING pending)
RCTGstPlayerController (1 - Native code) : New state from 'glcolorconvertelement0' : READY -> PAUSED (VOID_PENDING pending)
RCTGstPlayerController (1 - Native code) : New state from 'gluploadelement0' : READY -> PAUSED (VOID_PENDING pending)
RCTGstPlayerController (1 - Native code) : New state from 'videotestsrc0' : READY -> PAUSED (VOID_PENDING pending)
RCTGstPlayerController (1 - Native code) : New state from 'sink' : READY -> PAUSED (VOID_PENDING pending)
RCTGstPlayerController (1 - Native code) : New state from 'glimagesinkbin0' : READY -> PAUSED (VOID_PENDING pending)
RCTGstPlayerController (1 - Native code) : New state from 'pipeline0' : READY -> PAUSED (PLAYING pending)
RCTGstPlayerController (1 - Native code) : Setting property drawable_surface: 0x10e218b00
RCTGstPlayerController (1 - Native code) : Found VideoOverlay!2019-12-11 14:57:11.959514-0800 chakra[3096:2803708] RCTGstPlayerController (1 - IOS code) - Pipeline state changed from READY to PAUSED.
RCTGstPlayerController (1 - Native code) : New state from 'sink' : PAUSED -> PLAYING (VOID_PENDING pending)
RCTGstPlayerController (1 - Native code) : New state from 'glcolorbalance0' : PAUSED -> PLAYING (VOID_PENDING pending)
RCTGstPlayerController (1 - Native code) : New state from 'glcolorconvertelement0' : PAUSED -> PLAYING (VOID_PENDING pending)
RCTGstPlayerController (1 - Native code) : New state from 'gluploadelement0' : PAUSED -> PLAYING (VOID_PENDING pending)
RCTGstPlayerController (1 - Native code) : New state from 'glimagesinkbin0' : PAUSED -> PLAYING (VOID_PENDING pending)
RCTGstPlayerController (1 - Native code) : New state from 'videotestsrc0' : PAUSED -> PLAYING (VOID_PENDING pending)
RCTGstPlayerController (1 - Native code) : New state from 'pipeline0' : PAUSED -> PLAYING (VOID_PENDING pending)
RCTGstPlayerController (1 - Native code) : Setting property drawable_surface: 0x10e218b00
RCTGstPlayerController (1 - Native code) : Found VideoOverlay!2019-12-11 14:57:11.959783-0800 chakra[3096:2803708] RCTGstPlayerController (1 - IOS code) - Pipeline state changed from PAUSED to PLAYING.
billylindeman commented 4 years ago

This was a layout issue on my end