Page 1 of 1

Autoplay to false

Posted: Sun Dec 20, 2020 10:29 pm
by janez72
I have a YouTube player (YouTube3).
To run various videos in the same frame, I'm giving events onclick to run javascript:

playerYouTube3.loadVideoById('My Video')

The video inside starts on autoplay. I'd like to set autoplay to false.
I tired some suggested codes online, but non worked.
Any ideas?

Re: Autoplay to false

Posted: Mon Dec 21, 2020 1:55 am
by janez72
I just found out another thing:
in Chrome, "autoplay = false" is a default.
While in IE and Firefox - "autoplay = true" is default.

Re: Autoplay to false

Posted: Mon Dec 21, 2020 7:48 am
by Pablo
You can find more information about the YouTube API here:
https://developers.google.com/youtube/i ... _reference

Note that I cannot give support on scripts.