React-player: Trying to mute currently playing vimeo videos doesn't work in iOS

Created on 25 Jun 2018  Â·  4Comments  Â·  Source: cookpete/react-player

Hi, I have a problem with videos from vimeo in iOS devices.

I'm trying to change a muted state on or off in a custom control and pass it through props in the ReactPlayer while the video is playing, but it doesn't seems to work only for iOS devices and vimeo videos. Videos from YouTube or other sources work nicely in iOS and different devices without iOS and with vimeo videos work correctly.

I can replicate this in the demos you provide, setting the Muted checkbox on or off while the vimeo video is playing in a iOS device doesn't have any effect on the sound.

Most helpful comment

Sorry guys. The Vimeo player API does not have a method for muting/unmuting a player, and so ReactPlayer uses setVolume as a fallback. The problem with this is:

Most mobile devices (including iOS and Android) do not support setting the volume because the volume is controlled at the system level. An error will not be triggered in that situation.

https://github.com/vimeo/player.js#setvolumevolume-number-promisenumber-rangeerrorerror

There is an issue for this here: https://github.com/vimeo/player.js/issues/236 – not much more we can do I'm afraid.

All 4 comments

Hi! I have same problem!
Please help!

Same problem :(

Can someone help please????

Sorry guys. The Vimeo player API does not have a method for muting/unmuting a player, and so ReactPlayer uses setVolume as a fallback. The problem with this is:

Most mobile devices (including iOS and Android) do not support setting the volume because the volume is controlled at the system level. An error will not be triggered in that situation.

https://github.com/vimeo/player.js#setvolumevolume-number-promisenumber-rangeerrorerror

There is an issue for this here: https://github.com/vimeo/player.js/issues/236 – not much more we can do I'm afraid.

Is this a joke? You can set volume with html5 video and with youtube player no problem. How its possible that vimeo player has such bugs in the code?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

zverbatim picture zverbatim  Â·  8Comments

intelligence picture intelligence  Â·  3Comments

MDrooker picture MDrooker  Â·  6Comments

samuelbriole picture samuelbriole  Â·  5Comments

mrcoles picture mrcoles  Â·  5Comments