Interruption Handling

You're chatting away on your video call and, uh-oh, a phone call comes in. No worries, the 100ms SDK abstracts away handling this situation for you.

When a telephonic voice call comes in and the user accepts the following happens.

  • All videos including your own are turned off.
  • You are muted.

When the call ends the SDK will restore all videos, taking care not to un-mute you if you had muted yourself before the call came in. Neither will it un-mute all the peers if you had muted them from the app.

No code required, this happens automatically for all calls.

In Android, you will get a ON_ROOM_UPDATE event with the update type HMSRoomUpdate.ROOM_MUTED when the call starts and HMSRoomUpdate.ROOM_UNMUTED when the call ends and also ON_TRACK_UPDATE event for local peer with update type HMSTrackUpdate.TRACK_MUTED when call starts and HMSTrackUpdate.TRACK_UNMUTED when call ends if the tracks were unmuted earlier.

interruptionHandle

App StateScenarioAndroidiOS
ForegroundA Call interrupts Microphone accessSDK gets the mic access back after callSDK gets the mic access back after call
BackgroundA Call interrupts Microphone accessSDK doesn't get the mic access after callSDK gets the mic access back after call
ForegroundA Call interrupts Camera accessSDK gets the camera access back after callSDK gets the camera access back after call
BackgroundA Call interrupts Camera accessSDK gets the camera access back after callSDK gets the camera access back after call
ForegroundOther app interrupts Microphone accessSDK gets the mic access back after callSDK gets the mic access back after call
BackgroundOther app interrupts Microphone accessSDK doesn't get the mic access after callSDK gets the mic access back after call
ForegroundOther app interrupts Camera accessSDK gets the camera access back after callSDK gets the camera access back after call
BackgroundOther app interrupts Camera accessSDK gets the camera access back after callSDK gets the camera access back after call

Have a suggestion? Recommend changes ->

Was this helpful?

1234