|
|
@ -469,10 +469,6 @@ export class AppGroupCallsManager { |
|
|
|
|
|
|
|
|
|
|
|
const connection = connectionInstance.createPeerConnection(); |
|
|
|
const connection = connectionInstance.createPeerConnection(); |
|
|
|
connection.addEventListener('negotiationneeded', () => { |
|
|
|
connection.addEventListener('negotiationneeded', () => { |
|
|
|
if(!rejoin) { |
|
|
|
|
|
|
|
this.startConnectingSound(); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
connectionInstance.negotiate(); |
|
|
|
connectionInstance.negotiate(); |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
@ -485,7 +481,9 @@ export class AppGroupCallsManager { |
|
|
|
currentGroupCall.dispatchEvent('state', currentGroupCall.state); |
|
|
|
currentGroupCall.dispatchEvent('state', currentGroupCall.state); |
|
|
|
|
|
|
|
|
|
|
|
const {iceConnectionState} = connection; |
|
|
|
const {iceConnectionState} = connection; |
|
|
|
if(iceConnectionState !== 'connected' && iceConnectionState !== 'closed') { |
|
|
|
if(iceConnectionState === 'disconnected' || iceConnectionState === 'checking' || iceConnectionState === 'new') { |
|
|
|
|
|
|
|
this.startConnectingSound(); |
|
|
|
|
|
|
|
} else { |
|
|
|
this.stopConnectingSound(); |
|
|
|
this.stopConnectingSound(); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -541,6 +539,8 @@ export class AppGroupCallsManager { |
|
|
|
this.setCurrentGroupCall(currentGroupCall); |
|
|
|
this.setCurrentGroupCall(currentGroupCall); |
|
|
|
log('set currentGroupCall', groupCallId, currentGroupCall); |
|
|
|
log('set currentGroupCall', groupCallId, currentGroupCall); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
this.startConnectingSound(); |
|
|
|
|
|
|
|
|
|
|
|
return connectionInstance.negotiate(); |
|
|
|
return connectionInstance.negotiate(); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|