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

Full Screen Container?

Open mikejw opened this issue 3 years ago • 2 comments

Hi,

This isn't a regular issue or bug report. I'm just wondering if it's possible to have some control over the full screen mode of youtube videos. Is it possible to provide a container for the full screen video to load into? (So that there is a border around the playing video)?

Many thanks

mikejw avatar Sep 02 '21 21:09 mikejw

You would need to have a manual container around it or just use the ReactPlayer fullscreen API and disable YT-Controls (they are iframe, you have no direct control).

You could also take a look at e.g. https://www.npmjs.com/package/screenfull

Yasamato avatar Nov 02 '21 18:11 Yasamato

@mikejw You might find this SO question and answer useful

Frikster avatar Feb 14 '22 20:02 Frikster