Embed: unload webrtc player some more + fix for volume not being set to stored value in mews

This commit is contained in:
Cat 2021-06-09 15:02:16 +02:00 committed by Thulinma
parent 9d274fd64b
commit 35ea7edac4
4 changed files with 6 additions and 5 deletions

View file

@ -1053,7 +1053,7 @@ MistSkins["default"] = {
},button);
//apply initial video state
var initevent = MistUtil.event.addListener(video,"loadstart",function(){
var initevent = MistUtil.event.addListener(video,"loadedmetadata",function(){
if (('localStorage' in window) && (localStorage != null) && ('mistVolume' in localStorage)) {
MistVideo.player.api.volume = localStorage['mistVolume'];
}