react-native-live-stream icon indicating copy to clipboard operation
react-native-live-stream copied to clipboard

Question: Is it possible to use this for playing YouTube Livestream?

Open polcats opened this issue 3 years ago • 2 comments

If it is possible, could you please share a code snippet or refer me to a documentation? @wonday

For reference I am trying to use it this way (it is stuck in a black screen):

        <LivePlayer
          source={{
            uri: 'rtmp://a.rtmp.youtube.com/live2/{MY_STREAM_KEY}',
          }}
          ref={(ref) => {
            this.player = ref;
          }}
          style={styles.liveStream}
          paused={false}
          muted={false}
          bufferTime={300}
          maxBufferTime={5000}
          resizeMode={'contain'}
          onLoading={() => {
            console.log('\n\n\n loading... \n\n\n ');
          }}
          onLoad={() => {
            console.log('\n\n\n onLoad \n\n\n');
          }}
          onEnd={() => {
            console.log('\n\n\n onEnd \n\n\n');
          }}
        />

PS. Even the logs do not work

polcats avatar Sep 04 '20 07:09 polcats