0

Electron webview doesn't auto-play youtube videos. I am using Electron version 4.0.4

I send autoplay=1 as mentioned in Youtube docs, but no luck.

In the same time, Youtube URL auto-plays just fine in incognito Chrome window when copy/pasted.

Here is the simple code of webview

<webview id="youtube" src="https://www.youtube.com/embed/M7lc1UVf-VE?autoplay=1"></webview>

Any help will be greatly appreciated!

Systems Rebooter
  • 1,281
  • 2
  • 14
  • 30
  • If you're testing this URL in a mobile device, it wont autoplay the video - [source](https://stackoverflow.com/a/15093243/4092887), if you're testing this URL in a web browser, please check whether the console has errors. – Mauricio Arias Olave Feb 13 '19 at 20:19
  • Thanks for your reply @MauricioAriasOlave I am testing this on Desktop. No errors in console. – Systems Rebooter Feb 13 '19 at 20:41
  • 2
    Try add the `&mute=1` after `autoplay=1`. I though it was due to mobile wont autoplay, but, even if with `&mute=1` added and since I don't know about `webView`, I'm affraid I can't help, sorry. Just curious, did you search on Google about if anyone else has this problem? – Mauricio Arias Olave Feb 13 '19 at 21:00

0 Answers0