Update front mutli peer conncexion
This commit is contained in:
parent
575054fe4f
commit
e4a30712b5
2 changed files with 30 additions and 16 deletions
|
@ -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);
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue