Watch: set volume's session value to 0 when the player is muted (#1352)
This commit is contained in:
parent
f6c2e0937b
commit
588b488856
|
@ -447,8 +447,10 @@ export default Vue.extend({
|
|||
}
|
||||
},
|
||||
|
||||
updateVolume: function (event) {
|
||||
const volume = this.player.volume()
|
||||
updateVolume: function (_event) {
|
||||
// 0 means muted
|
||||
// https://docs.videojs.com/html5#volume
|
||||
const volume = this.player.muted() ? 0 : this.player.volume()
|
||||
sessionStorage.setItem('volume', volume)
|
||||
},
|
||||
|
||||
|
|
Loading…
Reference in New Issue