Mute volume toggle fixes
This commit is contained in:
parent
81ad9cf6f7
commit
68c4b52dfa
2
dist/plyr.js
vendored
2
dist/plyr.js
vendored
File diff suppressed because one or more lines are too long
@ -1855,6 +1855,11 @@
|
||||
// Set mute on the player
|
||||
plyr.media.muted = muted;
|
||||
|
||||
// If volume is 0 after unmuting, set to default
|
||||
if(plyr.media.volume === 0) {
|
||||
_setVolume(config.volume);
|
||||
}
|
||||
|
||||
// Embeds
|
||||
if(_inArray(config.types.embed, plyr.type)) {
|
||||
// YouTube
|
||||
@ -1905,9 +1910,6 @@
|
||||
// Set the player volume
|
||||
plyr.media.volume = parseFloat(volume / 10);
|
||||
|
||||
// Store in config
|
||||
config.volume = volume;
|
||||
|
||||
// Embeds
|
||||
if(_inArray(config.types.embed, plyr.type)) {
|
||||
// YouTube
|
||||
|
Loading…
x
Reference in New Issue
Block a user