Embed: webrtc metadatasocket: fixed race condition if metadata isn't immediately activated
This commit is contained in:
parent
72bc25cef0
commit
67aec0b1b6
2 changed files with 4 additions and 1 deletions
File diff suppressed because one or more lines are too long
|
@ -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..");
|
||||
|
|
Loading…
Add table
Reference in a new issue