Skip to content

v5.1.0

Latest

Choose a tag to compare

@jitvarpatil jitvarpatil released this 28 Oct 21:34
· 1 commit to v5 since this release
1667c2c

New

  • Added ringing through the Calls SDK. CometChatCalls.initiateCall(...) starts a call to a user or group, CometChatCalls.connect(...) prepares the session while it rings so answering joins almost immediately, and CometChatCalls.endCall(sessionId, status, listener) ends it with a status (rejected, cancelled, busy or unanswered) that the other side receives.
  • Added CometChatCalls.addIncomingCallListener(...) and IncomingCallListener to report incoming calls and how they ended, and injectIncomingCall(...) and injectIncomingCallEnded(...) to hand a call push to the SDK.
  • Added CometChatCalls.getActiveSession(), and leave(), isSessionJoined(), getSessionId(), getCallToken(), getPrepareStatus(), getPrepareError() and getParticipants(...) on CallSession.
  • Added CometChatCalls.addLoginListener(...) and removeLoginListener(...) to report Calls SDK login and logout results.
  • Added CometChatCalls.getParticipants(...) and CometChatCalls.getSessionState(...) for the current call.
  • Added the onConnected and onParticipantConnected events to SessionStatusListener, which fire while a session is prepared and before the user joins.
  • Added setPeerCall(boolean) on SessionSettingsBuilder for one-to-one calls, so the call ends for both participants when either one leaves.

Enhancements

  • Updated WebRTC to 155. WebRTC now resolves from Maven Central, so the app's repositories must include google() and mavenCentral(). The R8 keep rules it needs ship with the SDK.
  • Relocated the React Native runtime that the SDK embeds, so the SDK no longer conflicts with an app's own React Native or with libraries that bundle it.
  • Removed the need to call SoLoader.init before a call. The SDK loads its native libraries itself, including when joining with a generated token.

Fixes

  • Fixed calls, meetings and declines failing after the user logged out and back in. Logging out no longer de-initializes the SDK.
  • Fixed a crash on Android 14 and later when a call started without the microphone or camera permission.
  • Fixed auth tokens and call tokens being written to the device log.
  • Fixed one-to-one calls showing a reconnecting state and holding the call when the direct peer-to-peer link dropped while the media server link was still up.

Deprecations

  • Deprecated CallSession.leaveSession(). Use CallSession.leave() instead.
  • Deprecated CallSession.setSessionActive(boolean), which no longer has any effect. Use isSessionActive() to read the session state.

Breaking Changes

  • Raised the minimum Android version to API 26 (Android 8.0). Apps with a minSdk below 26 must raise it to 26 to use 5.1.0.