Skip to content
This repository has been archived by the owner on Dec 10, 2020. It is now read-only.

Decouple muted and vol=0 to allow muting/unmuting the player correctly #230

Merged
merged 1 commit into from
Jul 25, 2017

Conversation

marguinbc
Copy link
Contributor

Submitting as a possible means to address #226 where muted() is dependent on volume level.

This change adds a _muted property and gets/sets it based on the value passed in. If true, it still sets volume to 0 when muting but also sets _lastVolume so we can restore correctly. Also sets volume back to _lastVolume when un-muting.

Tested on Chrome 58.0.3029.110

Copy link
Member

@misteroneill misteroneill left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This seems reasonable and it has been causing issues and confusion.

@gkatsev gkatsev merged commit 9076aeb into videojs:master Jul 25, 2017
# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants