Video is not playing if not fullscreen
See original GitHub issueI am facing this weird issue, my youtube videos are not playing if the fullscreen is set to false. But if I set it to true, then it works fine. I dont need the full screen. Following is my code
`{this.state.showYoutube &&
<YouTube
apiKey="MY-YOUTUBE-API-KEY"
videoId={this.state.videoId} // The YouTube video ID
play={false} // control playback of video with true/false
fullscreen={false} // control whether the video should play in fullscreen or inline
loop={false} // control whether the video should loop when ended
//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})}
onError={e => console.log(e.error)}
style={{alignSelf: 'stretch', height: 300}}
/>
}`
if this.state.showYoutube is set to true then Youtube will be shown and the videoId is set after an api call,
I have used height and removed native base drawer after facing overlaying issue. Then it was working.
But now it is not working again, please tell me what I am doing wrong.
Issue Analytics
- State:
- Created 5 years ago
- Comments:7
Top Results From Across the Web
9 Tested Ways to Fix Chrome if Full Screen Is Not Working
What can I do if Full Screen isn't working on Google Chrome? · 1. Update Chrome · 2. Reinstall Chrome · 3. Disable...
Read more >Chrome Won't Go Full Screen - Easy Fixes! - Silicophilic
Fix: Chrome Won't Go Fullscreen · Fix 1: Check The Flash Players · Fix 2: Clear Chrome Browsing history And Check In Incognito...
Read more >Top 10 Fixes For 'Youtube Full Screen Not Working'
If the YouTube videos are not playing in full-screen mode on your computer, one of the first things to try is to refresh...
Read more >Inserted video does not play in full screen - Microsoft Community
Are you playing your video in edit mode by clicking the play arrow? This will NOT go to fullscreen, this only works in...
Read more >[Solved] YouTube Fullscreen Not Working on iPhone, iPad ...
If the YouTube won't go fullscreen with the full screen button, try the YouTube keyboard shortcut. The hotkey for going full screen on...
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 Free
Top 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

Yeah, it was a react-navigation related issue, caused by ‘createBottomTabNavigator’ that I was using. I switched to “react-navigation”: “2.18.2”. Which in turn needed me to remove ‘createAppContainer’ call from my main nav setup and return my nav simply without the AppContainer. It worked!
Thanks.
Did you use it as a component and called it in any view? If you did make sure that in that view there is no overlay on it. Cant find anything wrong in this code.
Another thing is your error summary. It clearly says about an overlay. So you must have it somewhere.