Merge pull request #6180 from ritzalam/do-not-eject-voice-user

- check to make sure user is not kicked out of voice conference even…
This commit is contained in:
Richard Alam 2018-10-23 14:40:31 -04:00 committed by GitHub
commit a3031ae5c7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -446,7 +446,12 @@
}
public function handleReconnectSIPSucceededEvent():void {
if (state != ON_LISTEN_ONLY_STREAM) {
// Check if using Flash to join voice conference. There is a bug that
// I can't find why the ReconnectionManager is dispatching a RECONNECT_SIP_SUCCEEDED_EVENT
// even if the client is not connected to the Red5 SIP app. What happens is we end up
// ejecting the user from the voice conference even if joined using webrtc when the flash
// client auto reconnects on bbb, screenshare, and video connections. (ralam Oct 23, 2018)
if (usingFlash && state != ON_LISTEN_ONLY_STREAM) {
var e:VoiceConfEvent = new VoiceConfEvent(VoiceConfEvent.EJECT_USER);
e.userid = UsersUtil.getMyUserID();
dispatcher.dispatchEvent(e);