Skip to main content

Overview

The Presenter Mode feature allows developers to create a calling service experience in which:
  1. There are one or more users who are presenting their video, audio and/or screen (Maximum 5)
  2. Viewers who are consumers of that presentation. (They cannot send their audio, video or screen streams out).
  3. The total number of presenters and viewers can go up to 100.
  4. Features such as mute/unmute audio, show/hide camera capture, recording, etc. will be enabled only for the Presenter in this mode.
  5. Other call participants will not get these features. Hence they act like passive viewers in the call.
Using this feature developers can create experiences such as:
  1. All hands calls
  2. Keynote speeches
  3. Webinars
  4. Talk shows
  5. Online classes
  6. and many more…
About this guide This guide demonstrates how to start a presentation into an Android application. Before you begin, we strongly recommend you read the calling setup guide. Before starting a call session you have to generate a call token. You need to call this method for the call token. Generate Token Generate token method takes two parameter authToken and sessionId. authToken: User can get the auth token from CometChatSDK that has a static method getUsersAuthToken(). sessionId: Any random string.
Start Presentation Session The most important class that will be used in the implementation is the PresentationSettings class. This class allows you to set the various parameters for the Presentation Mode. In order to set the various parameters of the PresentationSettings class, you need to use the PresentationSettingsBuilder class. Below are the various options available with the PresentationSettings class. PresentationSettingsBuilder class takes the 1 mandatory parameter as a part of the constructor:
  1. Context of the application
You will also need to set the User Type, There are 2 type of users in Presenter Mode, Presenter & Participant , You can set this PresentationSettingsBuilder by using the following method isPresenter(true/false) A basic example of how to start a Presentation: The mandatory parameters that are required to be present for any call/conference to work are:
  1. UIView i.e a view in which user want to show the calling view inside it.
  2. PresentationSettings.
Initialise Presenter Settings

Start Call

To start a call, user have to pass callToken and presenterSettings. callToken In the success block of generateToken(), user get the callToken. PresentationSettings presenterSettings can be set from the presentationSettingsBuilder View This is going to be the view in which CometChatCalls can load the calling views
Calling Events Listeners To get calling events, User have to conform the “CallsEventsDelegate” delegate. For these events working, User have to pass “self” to setDelegate() in presentationSettingsBuilder.
In case you wish to achieve a completely customised UI for the Calling experience, you can do so by embedding default iOS buttons to the screen as per your requirement and then use the below methods to achieve different functionalities for the embedded buttons.