Fix sharing peer connection

This commit is contained in:
Gregoire Parant 2020-10-20 20:39:33 +02:00
parent c03dd4c551
commit 2ee6d43274
3 changed files with 49 additions and 28 deletions

View file

@ -39,13 +39,13 @@ export class VideoPeer extends Peer {
urls: 'stun:stun.l.google.com:19302'
},
{
urls: TURN_SERVER,
urls: TURN_SERVER.split(','),
username: TURN_USER,
credential: TURN_PASSWORD
},
]
}
})
});
//start listen signal for the peer connection
this.on('signal', (data: unknown) => {