Fix webrtc

This commit is contained in:
gparant 2020-04-20 01:10:47 +02:00
parent 89816a13e4
commit a5b5072de1
2 changed files with 12 additions and 3 deletions

View file

@ -16,8 +16,9 @@ export class WebRtcEventManager {
this.eventVideoAnswer();
this.eventIceCandidate();
//connect on the room to create a meet
Connexion.socket.emit('webrtc-room', JSON.stringify({roomId: roomId}));
//start to connect on event
//TODO test
this.emitWebRtcRoom();
}
/**
@ -69,6 +70,11 @@ export class WebRtcEventManager {
});
}
emitWebRtcRoom(){
//connect on the room to create a meet
this.Connexion.socket.emit('webrtc-room', JSON.stringify({roomId: this.RoomId}));
}
emitIceCandidate(message : any){
message.roomId = this.RoomId;
this.Connexion.socket.emit('ice-candidate', JSON.stringify(message));