react-player icon indicating copy to clipboard operation
react-player copied to clipboard

hello, Are there events about full screen?

Open rookiewxy opened this issue 1 year ago • 1 comments

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

rookiewxy avatar Nov 23 '23 11:11 rookiewxy

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) => {});

nzhiti avatar Jan 06 '24 16:01 nzhiti