react-native-live-stream
react-native-live-stream copied to clipboard
Question: Is it possible to use this for playing YouTube Livestream?
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
up 🙌... LOL 2 months ago
hi, were you able to figure this out?