Bouton démarrer et arrêter l'iframe vimeo intégré avec javascipt

const Player = document.getElementById('iframe');  
const PlayBtn = document.getElementById('play');  
const stopBtn = document.getElementById('stop');  
let times = 0, playY;  
const playVideo = PlayBtn.addEventListener( 'click',() => {  
    if(times == 0){  
        var url = new URL(Player.src);  
        var search_params = url.searchParams;  
        search_params.set('autoplay', 'true');  
        url.search = search_params.toString();  
  
        playY = url.toString();  
        Player.src = url.toString();  
        times = 1;  
    }  
});  
  
stopBtn.addEventListener( 'click',() => {  
    if(times == 1) {  
        times = 0;  
        var url = new URL(Player.src);  
        var search_params = url.searchParams;  
        search_params.set('autoplay', false);  
        url.search = search_params.toString();  
        Player.src = url.toString();  
    }  
});