question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Video is not playing if not fullscreen

See original GitHub issue

I 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:closed
  • Created 5 years ago
  • Comments:7

github_iconTop GitHub Comments

1reaction
hack-and-backslashcommented, Jul 4, 2019

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.

0reactions
monicse09kucommented, Jul 4, 2019

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found