Meeting Config (DyteMeetingConfig)

This is meeting config sent to Dyte View i.e

let dyteView = DyteMeetingView(frame: CGRect(x: 0, y: 0, width: self.view.bounds.size.width, height:self.view.bounds.size.height ))
dyteView.delegate = self
dyteView.tag  = 100
self.dyteView = dyteView;
self.view.addSubview(dyteView)
dyteView.join(config);
DyteMeetingConfig *meetingConfig = [[DyteMeetingConfig alloc] init];
      meetingConfig.roomName = @"cluttered-vessel";
      meetingConfig.width = self.view.frame.size.width;
      meetingConfig.height = self.view.frame.size.height;
      DyteMeetingView *dyteView = [[DyteMeetingView alloc] initWithFrame:CGRectMake(0.0, 0.0, meetingConfig.width, meetingConfig.height)];
      dyteView.delegate = self;
      dyteView.tag = 100;
      [self.view addSubview:dyteView];
      [dyteView join:meetingConfig];

Notice in the above code snippet we are creating Meeting config object and sharing it with dyteView

Here are the properties DyteMeetingConfig takes

SNOPropTypeDefaultRequireddescription
1.roomNamestring-Yesroom name for your meeting
2.authTokenstring-YesAuth token for the particpant
3.showSetupScreenbooleanfalseNoShow audio / video setup screen to the participant
4.orgIdstring-Yesorganisation id obtained from dyte developers portal
5.widthdouble-Nowidth of dyte Meeting view
6.Heightdouble-NoHeight of dyte Meeting View
7.autoTunebooleantrueNoSee below for more details

autoTune: Dyte uses VP9 codec by default, but switches to H264/VP8 depending on participants video codec support.
VP9 is a superior codec but not all browsers support it. If you disable autoTune Dyte will use VP8 by default.

Dyte Meeting View (DyteMeetingView)

The DyteMeetingView class is the entry point to the SDK. It a subclass of UIView which renders a full conference in the designated area.

Triggering events

DyteMeetingView class allows you to perform certain events to your Dyte Meeting.

List of Methods

Join
- (void) join:DyteMeetingConfig

Joins the conference specified by the given options.

toggleAudio
- (void)toggleAudio;

Used to toggle audio state between mute and unmute.

toggleVideo

- (void)toggleVideo;

Used to toggle video state

selfPin

- (void)selfPin;

selfUnpin

- (void)selfUnpin;

Listening to events

In order to listen to events from your Dyte Meeting, there are two supported ways

  1. Using Delegates (recommended)
  2. Key value observation

DyteMeetingViewDelegate

Meeting Connected
- (void)meetingConnected;

Called when user connects to meeting

Meeting Disconnected
- (void)meetingDisconnect;

Called when meeting gets disconnected

Meeting Joined
- (void)meetingJoined;

Called when user joins meeting

Meeting Ended
- (void)meetingEnded;

Called when user leaves meeting or admin ends the meeting

Active Speaker
- (void)activeSpeaker:(NSString*)peerId;

Called When the active speaker changes

Participant Leave
- (void)participantLeave:(NSString*)peerId;

Called when Participant leaves the meeting

Participant join
- (void)participantJoin:(DyteParticipant*)participant;

Called when Participant joins meeting

Note: See below to understand about Participant Object

Participant Update
- (void)participantUpdate:(DyteParticipant*)participant;

Called when participant properties are updated.

Participant Object

SNOPropType
1.namestring
2.idstring
3.picturestring
4.isScreensharingBoolean
5.isPinnedBoolean
4.videoEnabledBoolean
5.audioEnabledBoolean