Fix to add special screen sharing

This commit is contained in:
Gregoire Parant 2020-06-08 09:36:07 +02:00 committed by David Négrier
parent 209057e3fc
commit 3e2c5049f2
2 changed files with 8 additions and 18 deletions

View file

@ -298,7 +298,11 @@ export class MediaManager {
<video id="${userId}" autoplay></video>
</div>
`);
this.remoteVideo.set(userId, document.getElementById(userId));
let activeHTMLVideoElement : HTMLElement|null = document.getElementById(userId);
if(!activeHTMLVideoElement){
return;
}
this.remoteVideo.set(userId, (activeHTMLVideoElement as HTMLVideoElement));
}
/**