Update front mutli peer conncexion

This commit is contained in:
gparant 2020-04-26 17:42:49 +02:00
parent 575054fe4f
commit e4a30712b5
2 changed files with 30 additions and 16 deletions

View file

@ -118,8 +118,8 @@ export class MediaManager {
*/
addActiveVideo(userId : any){
let elementRemoteVideo = document.getElementById("activeCam");
elementRemoteVideo.insertAdjacentHTML('beforeend', '<video id="myCamVideo'+userId+'" autoplay></video>');
elementRemoteVideo.insertAdjacentHTML('beforeend', '<video id="'+userId+'" autoplay></video>');
this.remoteVideo[userId] = document.getElementById('myCamVideo'+userId);
this.remoteVideo[userId] = document.getElementById(userId);
}
}