OTPublisherKitSettings class

OTPublisherKitSettings defines settings to be used when initializing a publisher.

Annotations

Constructors

OTPublisherKitSettings({String name, bool audioTrack, bool videoTrack, int audioBitrate, OTCameraCaptureResolution cameraResolution, OTCameraCaptureFrameRate cameraFrameRate})
const
OTPublisherKitSettings.fromJson(Map<String, dynamic> json)
factory

Properties

audioBitrate int
The desired bitrate for the published audio, in bits per second. The supported range of values is 6,000 - 510,000. (Invalid values are ignored.) Set this value to enable high-quality audio (or to reduce bandwidth usage with lower-quality audio).
final
audioTrack bool
Whether to publish audio (YES, the default) or not (NO). If this property is set to NO, the audio subsystem will not be initialized for the publisher, and setting the <OTPublisherKit publishAudio> property will have no effect. If your application does not require the use of audio, it is recommended to set this Builder property rather than use the <OTPublisherKit publishAudio> property, which only temporarily disables the audio track.
final
cameraFrameRate OTCameraCaptureFrameRate
final
cameraResolution OTCameraCaptureResolution
final
hashCode int
The hash code for this object.
read-onlyinherited
name String
The name of the publisher video. The <OTStream name> property for a stream published by this publisher will be set to this value (on all clients). The default value is null.
final
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited
videoTrack bool
Whether to publish video (YES, the default) or not (NO). If this property is set to NO, the video subsystem will not be initialized for the publisher, and setting the <OTPublisherKit publishVideo> property will have no effect. If your application does not require the use of video, it is recommended to set this Builder property rather than use the <OTPublisherKit publishVideo> property, which only temporarily disables the video track.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
toJson() Map<String, dynamic>
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited