External Call Detection Event - Android
External call detection event in VideoSDK let you know, participant is on the call during meeting.
Whenever local participant accept the incoming call or place outgoing call, externalcall-started
event will trigger.externalcall-started
event only received by localParticipant.
For example, the meeting is running with Alice and Bob. Whenever Alice receives the call or she call someone, Alice will receive externalcall-started
event.
We can access externalcall-started
event through Meeting
class.
externalcall-started Event
- Kotlin
- Java
private val meetingEventListener: MeetingEventListener = object : MeetingEventListener() {
// ...
override fun onExternalCallStarted() {
Log.d("#VideoSDK", "onExternalCallAnswered")
}
};
override fun onCreate(savedInstanceState: Bundle?) {
//...
// add listener to meeting
meeting!!.addEventListener(meetingEventListener)
}
private final MeetingEventListener meetingEventListener = new MeetingEventListener() {
// ...
@Override
public void onExternalCallStarted() {
Log.d("#VideoSDK", "onExternalCallStarted");
}
};
@Override
protected void onCreate(Bundle savedInstanceState) {
//...
// add listener to meeting
meeting.addEventListener(meetingEventListener);
}
Got a Question? Ask us on discord