const iframe = document.querySelector('iframe');
const player = new Vimeo.Player(iframe);
player.on('play', function() {
console.log('Video is playing!');
});
// Start playback after user interaction
document.addEventListener('click', function() {
player.play().catch(function(error) {
console.error('Error playing the video:', error);
});
});