pupunzi / jquery.mb.vimeo_player

A jQuery plug-in to play any Vimeo video as background of your page
https://pupunzi.com/mb.components/mb.vimeo_player/demo/index.html
59 stars 30 forks source link

Replaced toggleMute() method with setMuted(boolean) #35

Closed kinaz closed 2 years ago

kinaz commented 3 years ago

Hi there,

the toggleMute() method is not present nor documented in the current version of Vimeo API: https://github.com/vimeo/player.js

I was getting an error on mobile devices, so I tried and replace toggleMute() with the correct method: setMuted(boolean)

The error is gone and the video plays on mobile as well.

Please see that I modified the src file only; I'll let you deal with the build process.