fix(ui) - peerjs iceserver config

This commit is contained in:
Shekar Siri 2021-11-21 23:36:14 +05:30
parent 4b9f8bdf8e
commit 549b8a4e40

View file

@ -155,11 +155,13 @@ export default class AssistManager {
host: new URL(window.ENV.API_EDP).host,
path: '/assist',
port: location.protocol === 'https:' ? 443 : 80,
sdpSemantics: 'unified-plan'
}
if (iceServers) {
_config['config'] = iceServers;
_config['config'] = {
iceServers: iceServers,
sdpSemantics: 'unified-plan',
};
}
const peer = new Peer(_config);