Skip to main content

Meeting Class

Using Meeting Class

The Meeting Class includes methods and events for managing meetings, participants, video & audio streams, data channels and UI customization.

Properties

  • __properties

      Properties
    • idString

      meeting Id
    • localParticipantParticipant

      local participant of the meeting
    • participantsMap<String, Participant>

      all remote participants of the meeting
    • pubSubPubSub

      Publisher-Subscriber feature
    • selectedWebcamIdString?

      Id of the webcam device selected as input video source
    • selectedMicIdString?

      Id of the microphone device selected as input audio source

Events

  • __events

      Events
    • Events.meetingJoinedvoid

      emitted when local participant joined the meeting successfuly
    • Events.meetingLeftvoid

      emitted when local participant left the meeting
    • Events.participantJoinedparticipant

      emitted when new participant joined the meeting
    • Events.participantLeftparticipantId

      emitted when any participant from the meeting left
    • Events.recordingStartedvoid

      emitted when recording of the meeting is started successfully
    • Events.recordingStoppedvoid

      emitted when recording of the meeting is stopped
    • Events.liveStreamStartedvoid

      emitted when live streaming of the meeting in social media is started successfully
    • Events.liveStreamStoppedvoid

      emitted when live streaming of the meeting is stopped
    • Events.speakerChangedvoid

      emitted when active speaker is changed
    • Events.presenterChangedvoid

      emitted when any participant started presenting

Methods

  • __methods

      Methods
    • join()void

      join the meeting
    • leave()void

      leave the meeting
    • enableWebcam()void

      enable self webcam
    • disableWebcam()void

      disable self webcam
    • unmuteMic()void

      unmute self mic
    • muteMic()void

      mute self mic
    • enableScreenShare()void

      start sharing phone screen
    • disableScreenShare()void

      stop sharing phone screen
    • getWebcams()void

      get all webcam devices
    • getMics()void

      get all mic devices
    • changeWebcam()<deviceId>void

      change self webcam
    • enableScreenShare()void

      start screen sharing
    • disableScreenShare()void

      stop screen sharing
    • startRecording()void

      start meeting recording
    • stopRecording()void

      stop meeting recording
    • startLivestream()void

      start meeting live streaming
    • stopLivestream()void

      stop meeting live streaming
    • on(Events event, Function handler)void

      event handler of the meeting

Example

Play with meeting instance
// Join the meeting
meeting?.join();

// Get local participants
meeting?.localParticipant;

// Get remote participants
meeting?.participants;

// Adding event listner
meeting.on(Events.participantJoined, (Participant participant) {
print("new participant => $participant");
},
);

Got a Question? Ask us on discord