Skip to content

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

@polcats

Description

@polcats

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions