fullscreen error
See original GitHub issueCurrent Behavior
In chrome dev tools - mobile emulation I get
caught (in promise) TypeError: fullscreen error
Environment
- URL attempting to play: www.greatstate.co
- Browser: Chrome
- Operating system:
Other Information
“gatsby”: “2.7.5”, “react-player”: “^1.14.2”,
My player code looks like
<ReactPlayer
ref={videoRef}
className={css.reactPlayer}
url={url}
width="100%"
height="100%"
muted
playing
loop
controls={false}
onDuration={duration => {
handleDuration(duration)
}}
onReady={() => {
setVideoIsReady(true)
}}
/>
I have trieda few vimeo config options
vimeoConfig={{ iframeParams: { fullscreen: 0 } }}
and
vimeoConfig={{ playerOptions: { fullscreen: 0 } }}
Issue Analytics
- State:
- Created 4 years ago
- Comments:5 (1 by maintainers)
Top Results From Across the Web
Document: fullscreenerror event - Web APIs - MDN Web Docs
The fullscreenerror event is fired when the browser cannot switch to fullscreen mode. As with the fullscreenchange event, ...
Read more >fullscreenerror Event - W3Schools
The fullscreenerror event occurs when an element can not be viewed in fullscreen mode, even if it has been requested. Note: This event...
Read more >Javascript request fullscreen is unreliable - Stack Overflow
Another unexpected issue with requestFullscreen() is that parent frames need to have the allowfullscreen attribute, otherwise Firefox outputs ...
Read more >TypeError: fullscreen error · Issue #122 · sindresorhus/screenfull
Hi, I get this error: TypeError: fullscreen error at Object. (/js/trainer_scripts.js:3176:1323) at new Promise ( ) at Object.request ...
Read more >Document.fullscreenerror Event - Web APIs - W3cubDocs
The fullscreenerror event is fired when the browser cannot switch to fullscreen mode.
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
Thanks, that worked for me. Even though I have to add vimeo in configuration. Now my react player looks like :
@maddyahmad I don’t know if it’ll help you this may fix it
According to the Vimeo API documentation on
playsinline
attribute :Therefore I forced it to
true
, and it fixed it.It also fixed an other issue I had, on mobile emulation on chrome, while I push pause / play button, it triggered the fullscreen mode.
my code :