Skip to main content
meetingState() This method is synchronous — it does not return a Promise.

Return value

Returns a DailyMeetingState string:
  • 'new' — instance created, no activity yet
  • 'loading' — loading the Daily bundle
  • 'loaded' — bundle loaded, ready to join
  • 'joining-meeting'join() called, connection in progress
  • 'joined-meeting' — successfully joined the call
  • 'left-meeting' — left or ejected from the call
  • 'error' — a fatal error occurred; the connection is terminated but state is 'error' rather than 'left-meeting'

Example

const state = call.meetingState();

if (state === 'joined-meeting') {
  console.log('In call');
} else if (state === 'error') {
  console.log('Fatal error — call terminated');
}

See also