Plyr: Set video to mute on initialization

Created on 4 Nov 2016  Â·  7Comments  Â·  Source: sampotts/plyr

Hi, how can I set all my video instances (youtube) to muted when I initialize them with plyr.setup() ?
thanks

Most helpful comment

Yes, you can only set it muted using setVolume(0). I think this need to be fixed.

All 7 comments

In your config options, pass the volume option as 0.

https://github.com/Selz/plyr/blob/master/readme.md#options

I don't think it is working. You have volume option minimum set at 1. I entered volume:0, but it seems to only take it as 1, not muted.

Yes, you can only set it muted using setVolume(0). I think this need to be fixed.

Hi @sampotts
I have set muted: true, I also tried all the hacks with volume: 0 - video (Vimeo) still plays with sound. Muted parameter doesn't appear in iframe _src_ attribute. If I insert _&muted=true_ parameter in dev tools - video is muted. Please, comment on this

@nanastya I'm about to push a fix for Vimeo

@sampotts Thanks for your answer. I've updated Plyr, but there's the same issue with muted parameter for me. Can you, please, double check it?

Remember that users volume settings are stored in local storage so try clearing that first.

Sam

On 8 May 2018, at 7:55 pm, Anastasiia Klymenko notifications@github.com wrote:

@sampotts Thanks for your answer. I've updated Plyr, but there's the same issue with muted parameter for me. Can you, please, double check it?

—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Lycanthrope picture Lycanthrope  Â·  4Comments

elliottcoe picture elliottcoe  Â·  4Comments

Skwai picture Skwai  Â·  4Comments

onigetoc picture onigetoc  Â·  3Comments

michaelmano picture michaelmano  Â·  3Comments