Until earlier today, the following block of code was running fine to toggle the volume on a Vimeo video.
const updateVideoMute = (vimeoPlayer, muteIcon) => {
vimeoPlayer.getVolume().then(data => {
data === 0 ? vimeoPlayer.setVolume(1) : vimeoPlayer.setVolume(0);
data === 0 ? muteIcon.classList.add("active") : muteIcon.classList.remove("active");
});
};
The checks I have made include:
Has something changed with the API? Any suggestions on how to further investigate the problem?
Appreciate your help.
I had this same issue, and changing player.setVolume(1)
to use player.setMuted(false)
instead has made it work for me.