stateChanged

This event is emitted when the meeting state changes

meeting.on("stateChanged", function(meetingState) {

})

meetingState could have the following valid values:

  • terminated
  • joining
  • not_joined
  • connecting_streams
  • joined

When join() method is called the meeting goes into the joining state

If an error occurs during the joining process then the meeting state becomes not_joined

If the connection to the server succeeds then the meeting goes into connecting_streams and receives the remote video and audio streams and remoteTrackStarted events are emitted for each audio and video track.

After this meeting goes into the joined state.