Wyłącz autoodtwarzanie w youtube javascript api

Wiem o używaniu autoodtwarzania: 0 w parametrach i w adresie URL. Problem polega na tym, że używam funkcji loadVideoByID (). Pierwsze wideo wydaje się zawsze nie uruchamiać automatycznie. ale w chwili, gdy ładuję nowy film, nowy uruchamia się automatycznie. Nie chcę też, aby ten nowy uruchamiał się automatycznie

$(document).ready(function() {
var player;
window.onYouTubePlayerAPIReady = function() {
    player = new YT.Player('player', {
        height : '390',
        width : '640',
        videoId : 'JW5meKfy3fY',
        playerVars : {
            'autoplay' : 0,
            'rel' : 0,
            'showinfo' : 0,
            'egm' : 0,
            'showsearch' : 0,
            'controls' : 0,
            'modestbranding' : 1,
        },
        events : {
            'onReady' : onPlayerReady,
            'onStateChange' : onPlayerStateChange
        }
    });

};

window.onPlayerReady = function(event) {
    //event.target.playVideo();
    loadNewVid("bHQqvYy5KYo");
};

window.onPlayerStateChange = function(event, element) {
    //When the video has ended
    if (event.data == YT.PlayerState.ENDED) {
        //Get rid of the player
        element.style.display = "none";
    }
};

function loadNewVid(vidID){
    player.loadVideoById(vidID, "large");

}

});

questionAnswers(2)

yourAnswerToTheQuestion