How to embed a live stream?
See original GitHub issueHi I’ve got the following video that I want to display https://www.youtube.com/embed/live_stream?channel=UCHk3Xtz3k8H1Ms6CtodmawQ
I want to display in that way because it is a live stream and the videoId keeps changing.
Nevertheless if I put
render () {
return (
<YouTube
apiKey={API_KEY}
videoId='live_stream?channel=UCHk3Xtz3k8H1Ms6CtodmawQ' // The YouTube video ID
play // control playback of video with true/false
showFullscreenButton
onReady={e => this.setState({ isReady: true })}
onChangeState={e => this.setState({ status: e.state })}
onChangeQuality={e => this.setState({ quality: e.quality })}
onError={e => this.setState({ error: e.error })}
style={{ height: 300 }}
/>
)
}
It renders
What should I do? Best Regards
Issue Analytics
- State:
- Created 6 years ago
- Comments:10 (1 by maintainers)
Top Results From Across the Web
How to Embed Live Streaming Video on Your Website in 2022
Go to your website's admin page and find the page you want to embed your live stream video. Click on “add a section”;...
Read more >How to embed live streaming video on your website - Restream
Use Restream Studio · Log in to your Restream account and navigate to the dashboard. · Click “Stream with Studio.” · Click the...
Read more >3 Simple Steps to Embed Live Stream Video to Your Website
1. Switch the stream to unlisted or public. · 2. Navigate to the “Watch page” and click share. · 3. Then from the...
Read more >How to Embed a Live Stream on your Website - EventLive
Embed your live stream in a Wix Website · On the left side of your screen, press the + sign. · Choose Embed,...
Read more >How to Live Stream Directly to Your Website - YouTube
Live stream directly to your website with Restream's new embeddable live video player. This new tool empowers you to direct traffic to your ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hey @srinusonly I am using this componentDidMount trick to get the videoId
where YOUTUBE_API is
and then in render method
I can confirm that workaround provided by @christiansaiki works in both android and iOS.