Fix webrtc
This commit is contained in:
parent
e06b20fe96
commit
c7f8f92e85
2 changed files with 4 additions and 4 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue