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

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

Open
polcats opened this issue Sep 4, 2020 · 2 comments
Open

Comments

@polcats
Copy link

polcats commented Sep 4, 2020

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 polcats changed the title Question: Is it possible to use this for YT Livestream? Question: Is it possible to use this for playing YouTube Livestream? Sep 4, 2020
@fabiancarlos
Copy link

up 🙌... LOL 2 months ago

@micwise17
Copy link

hi, were you able to figure this out?

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

3 participants