Vimeo mute
This commit is contained in:
parent
8f80e4fa65
commit
cd2532867c
2
dist/plyr.js
vendored
2
dist/plyr.js
vendored
File diff suppressed because one or more lines are too long
@ -1582,6 +1582,19 @@
|
||||
// Trigger timeupdate
|
||||
_triggerEvent(plyr.media, 'volumechange');
|
||||
}
|
||||
|
||||
// Vimeo
|
||||
if (plyr.type === 'vimeo') {
|
||||
if (plyr.media.muted) {
|
||||
plyr.embed.api('setVolume', 0);
|
||||
}
|
||||
else {
|
||||
plyr.embed.api('setVolume', parseFloat(config.volume / 10));
|
||||
}
|
||||
|
||||
// Trigger timeupdate
|
||||
_triggerEvent(plyr.media, 'volumechange');
|
||||
}
|
||||
}
|
||||
|
||||
// Set volume
|
||||
|
Loading…
x
Reference in New Issue
Block a user