When I open in Electron in Webview component a video on Youtube site and click fullscreen I get quite strange behaviour. It looks like Webview goes fullscreen for the moment and then goes back to it’s initial size (defined in html file). Is there any solution to this problem? How can I fix this behaviour or prevent fullscreen option in Youtube video.
Actualy this is not a problem. It doesn’t be full screen because we don’t add allowfullscreen code.
You should use your iframe code like that.
<iframe src="http://YourVideoURLforExampleYoutube" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe>