I have two buttons. Each one has a link for a youtube video. If I do not click on the video to play it after it appears in the webview, I can change the src of webview by clicking on another button and I can see the image of the other video appears in the window. But if I click on either one and play the video, when I try to click on another button to see the another video, the webview is broken and all black and do not show me the video.
I tried too reload the window on standard menu of Electron, and the window is blank. Same behavior only If I play one video. How can I fix it?
[Video showing the error]
If you want to reproduce this behavior and check the code, here’s the repository on github: