Embed: webrtc metadatasocket: fixed race condition if metadata isn't immediately activated

This commit is contained in:
Cat 2024-04-25 10:07:34 +02:00 committed by Thulinma
parent 72bc25cef0
commit 67aec0b1b6
2 changed files with 4 additions and 1 deletions

File diff suppressed because one or more lines are too long

View file

@ -859,6 +859,9 @@ function MistVideo(streamName,options) {
me.s({type:"set_speed",play_rate:MistVideo.player.api.playbackRate});
});
}
if (me.socket.readyState == me.socket.OPEN) {
me.socket.onopen();
}
},
destroy: function(){
MistVideo.log("Closing metadata socket..");