The ListenOptions model defines how the application expects to join a conference using the listen method.
Optional conferenceAccessToken: string
The conference access token that is required to join a protected conference if the conference is created using the create REST API. If the conference is created using the create method, the token is managed by the SDK and is not visible to the application users. For more information, see the Enhanced Conference Access Control document.
Optional forwardingStrategy: VideoForwardingStrategy
Changes the video forwarding strategy for the local participant. This method is available only in SDK 3.6 and later.
Optional leaveConferenceOnBeforeUnload: boolean
Allows handling the beforeunload event on the application level instead of on the SDK level. By default, the SDK listens to the beforeunload event and leaves a conference when this event is triggered. When leaveConferenceOnBeforeUnload is set to false, the SDK stops reacting on the beforeunload event, which allows customizing the beforeunload handling. In this case, the SDK does not react to events such as closing a tab to leave a conference and these events need to be also handled on the application level.
Optional maxVideoForwarding: number
Sets the maximum number of video streams that may be transmitted to the joining participant. The valid parameter's values are between 0 and 49. In the case of providing a value smaller than 0 or greater than 49, SDK triggers the VideoForwardingError. If the parameter value is not specified, the SDK automatically sets the maximum value.
Optional spatialAudio: boolean
Enables spatial audio for the local participant who joins a Dolby Voice conference. By default, this parameter is set to false.
Optional type: ListenType
The listener type that indicates whether a participant is a regular listener or a mixed listener. This property is available in SDK 3.9 and later.
Updated 3 months ago