gajus / react-youtube-player

React component that encapsulates YouTube IFrame Player API and exposes player controls using the component properties.
Other
40 stars 17 forks source link

Unmounting the video player after the video has started to buffer and before it has started to play prompts a dev tools popup #14

Open gajus opened 7 years ago

gajus commented 7 years ago

Unmounting the video player after the video has started to buffer and before it has started to play prompts a dev tools popup.

The source of the devtools is for chrome-devtools://devtools/bundled/inspector.html?isSharedWorker=true&remoteBase=https://chrome-devtools-frontend.appspot.com/serve_file/@691bdb490962d4e6ae72f5c6ab1fdd0faaf19cd0/&dockSide=undocked

It is not clear what is making this to happen.

gajus commented 7 years ago

Whatever is causing this is not react-youtube-player or youtube-player package related (as far as I can tell). This behaviour can be replicated only when dev tools window is on. Therefore, it does not effect real-life users.

gajus commented 7 years ago

Would be good to understand how to disable this. I cannot find anything in YouTube Iframe API documentation.

rokit commented 7 years ago

I think you're right. In my react component I can swap between two views. One has a youtube iframe and the other is just text. If I switch back and forth between them, I get the popup.