Can't turn autoplay off
ecruhling opened this issue · 3 comments
No matter where I set it, I can't seem to get autoplay to set to 0. I know the script is just creating an autoplay parameter on the iframe URL, but no matter if I set it in JS or in the HTML, it is always autoplay=1
I agree stopping auto play doesn't work
go => function YoutubeBackground(elem, params, id, uid) {
and search => this.defaults = {
search 'autoplay': true, update => 'autoplay':false,
search 'pause':false, update=> 'pause':true,
2 .
go => YoutubeBackground.prototype.injectIFrame = function ()
and search => var src = 'https://www.youtube.com/embed/'+this.ytid+'
and search '?enablejsapi=1 update => **'?autoplay=0&enablejsapi=1
**
I've tested the data-vbg-autoplay
, and the manual properties and I've confirmed this works. This is an old issue, so I can't be sure when I've fixed this issue.
This script was designed as a video background, so stopping the autoplay and the play functionalities were not initially intended, but added on request.
Anyway if the problem arises once again do let me know.