Fix webrtc
This commit is contained in:
parent
e06b20fe96
commit
c7f8f92e85
@ -222,7 +222,7 @@ export class IoSocketController{
|
||||
}
|
||||
arrayMap.forEach((value : any) => {
|
||||
let roomId = value[0];
|
||||
this.Io.in(roomId).emit('user-position', JSON.stringify(arrayMap));
|
||||
this.Io.in(roomId).emit(SockerIoEvent.USER_POSITION, JSON.stringify(arrayMap));
|
||||
});
|
||||
this.seTimeOutInProgress = setTimeout(() => {
|
||||
this.shareUsersPosition();
|
||||
|
@ -97,7 +97,7 @@ export class SimplePeer {
|
||||
});
|
||||
|
||||
//add lof info PeerConnexionArray
|
||||
this.PeerConnexionArray[user.userId]._debug = console.info;
|
||||
//this.PeerConnexionArray[user.userId]._debug = console.info;
|
||||
|
||||
this.PeerConnexionArray[user.userId].on('signal', (data: any) => {
|
||||
console.info("createPeerConnexion => sendWebrtcSignal : "+user.userId, data);
|
||||
@ -138,8 +138,8 @@ export class SimplePeer {
|
||||
*/
|
||||
private receiveWebrtcSignal(message: string) {
|
||||
let data = JSON.parse(message);
|
||||
console.log("receiveWebrtcSignal", data);
|
||||
console.log("this.PeerConnexionArray[data.userId]", this.PeerConnexionArray[data.userId]);
|
||||
console.log("receiveWebrtcSignal", data.userId);
|
||||
console.log("receiveWebrtcSignal => data", data);
|
||||
if(!this.PeerConnexionArray[data.userId]){
|
||||
return;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user