Skip to main content
Version: 2.0.x

Meeting Connection Events - iOS

VideoSDK provides onMeetingStateChanged event which will notify you of the current connection state of the meeting.

onMeetingStateChanged

  • This event will be triggered when state of meeting changes.
  • It will pass state as an event callback parameter which will indicate current state of the meeting.
  • All available states are CONNECTING, CONNECTED, FAILED, DISCONNECTED, CLOSING, CLOSED.
  • You can implement this method of the abstract Class MeetingEventListener and add the listener to Meeting class using the addEventListener() method of Meeting Class.

Example

Here is the usage of the event mentioned in this page.

extension MeetingViewController: MeetingEventListener {
meeting.listeners.onMeetingStateChanged(meetingState: MeetingState) {
switch meetingState {
case .CONNECTING:
print("Meeting is connecting")

case .CONNECTED:
print("Meeting is connected")

case .CLOSING:
print("Meeting is closing")

case .CLOSED:
print("Meeting connection closed")

case .CANCELLED:
print("Meeting is cancelled")
}
}
}

API Reference

The API references for all the methods and events utilised in this guide are provided below.

Got a Question? Ask us on discord