How to play a YouTube video


I managed to play a video in my Electron app using an iFrame and a hack on removing the x-frame-options from the response headers. But the iframe shows a complete webview. I don’t want that. I only want the video player, just like I would see if I was embedding the video in a normal web page in Chrome. This must be possible since Slack plays YouTube videos.

Never mind. Completely overlooked that the url wasn’t formatted with the “embed” in its url. Please close this. Thanks.