question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[V3] muted attribute is not working

See original GitHub issue

Expected behaviour

<video muted autoplay> should play the video with muted audio.

Actual behaviour

plyr.js does not respect the muted and does not mute the video.

Environment

  • Browser: Firefox 58
  • Operating System: Ubuntu Linux
  • Plyr: 3.0.3

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:16 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
sampottscommented, Apr 9, 2018

They won’t if you’ve previously set the muted state and have it in local storage. Obviously the users settings overwrite the defaults. Try clearing your plyr local storage key.

1reaction
Jaikumar0101commented, Nov 7, 2021

hey I have resolved this issue with little simple steps

const player = new Plyr('#player'); player.muted=true; player.play();

Read more comments on GitHub >

github_iconTop Results From Across the Web

Why `muted` attribute on video tag is ignored in React?
This is actually a known issue which has existed since 2016. The video will be muted correctly, but the property will not be...
Read more >
Muted attribute not working for Video file [#2969691] | Drupal.org
Fresh Drupal 8.5.x install. I've added a Media Video and I try to mute it in its display mode. Unfortunately, the video is...
Read more >
HTML video muted Attribute - W3Schools
Definition and Usage. The muted attribute is a boolean attribute. When present, it specifies that the audio output of the video should be...
Read more >
HTMLMediaElement.muted - Web APIs - MDN Web Docs
The HTMLMediaElement.muted indicates whether the media element muted. Value. A boolean value. true means muted and false means not muted.
Read more >
Audio or video element avoids automatically playing ... - W3C
Mechanisms located on other pages can still create accessibility issues for ... This video element audio autoplays for longer than 3 seconds but...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found