react-player
react-player copied to clipboard
hello, Are there events about full screen?
Be sure to search for your issue before opening a new one.
Current Behavior
Expected Behavior
Steps to Reproduce
Environment
- URL attempting to play:
- Browser:
- Operating system:
- jsFiddle example: https://jsfiddle.net/sv5x3ug1
Other Information
Reactplayer is using screenfull library to handle fullscreen.
if (screenfull.isEnabled) { screenfull.on('change', () => { console.log('Am I fullscreen?', screenfull.isFullscreen ? 'Yes' : 'No'); }); }
You can also try to use the full screen browser API : https://developer.mozilla.org/en-US/docs/Web/API/Document/fullscreenchange_event
addEventListener("fullscreenchange", (event) => {});