Fix webrct finish event delay

This commit is contained in:
Gregoire Parant 2020-10-20 18:02:44 +02:00
parent 336742b8b3
commit 173f7a5061
3 changed files with 58 additions and 15 deletions

View file

@ -455,8 +455,7 @@ export class MediaManager {
addStreamRemoteVideo(userId: string, stream : MediaStream){
const remoteVideo = this.remoteVideo.get(userId);
if (remoteVideo === undefined) {
console.error('Unable to find video for ', userId);
return;
throw `Unable to find video for ${userId}`;
}
remoteVideo.srcObject = stream;
}