External Call Detection - Android
The external call detection feature in VideoSDK lets you know when a participant is on a phone call during a meeting.
Whenever the local participant accepts an incoming call or places an outgoing call, the onExternalCallStarted() event is triggered. The onExternalCallStarted() event is only received by localParticipant.
For example, the meeting is running with Alice and Bob. Whenever Alice receives a call or calls someone, Alice will receive the onExternalCallStarted() event.
We can access the onExternalCallStarted() event through meeting object.
note
This event needs the READ_PHONE_STATE permission. Declare it in your AndroidManifest.xml and request it at runtime.
onExternalCallStarted Event
private val meetingEventListener: MeetingEventListener = object : MeetingEventListener() {
// ...
override fun onExternalCallStarted() {
Log.d("#meeting", "onExternalCallStarted")
}
};
Got a Question? Ask us on discord

