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 an update on the onRoomUpdate method with the update type HMSRoomUpdate.roomMuted when the call start and HMSRoomUpdate.roomUnmuted when the call end and also onTrackUpdate for local peer with update type HMSTrackUpdate.trackMuted when call starts and HMSTrackUpdate.trackUnMuted 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