AgoraChannelData class

Use this class to define the properties of a channel and the behaviour of a user inside that channel.

Constructors

AgoraChannelData({ChannelProfile channelProfile = ChannelProfile.Communication, ClientRole clientRole = ClientRole.Broadcaster, VideoEncoderConfiguration? videoEncoderConfiguration, bool setCameraAutoFocusFaceModeEnabled = false, bool enableDualStreamMode = false, StreamFallbackOptions? localPublishFallbackOption, StreamFallbackOptions? remoteSubscribeFallbackOption, AudioProfile audioProfile = AudioProfile.Default, AudioScenario audioScenario = AudioScenario.Default, BeautyOptions? setBeautyEffectOptions, bool setCameraTorchOn = false, bool muteAllRemoteAudioStreams = false, bool muteAllRemoteVideoStreams = false, bool isActiveSpeakerDisabled = false})

Properties

audioProfile AudioProfile
Sets the audio parameters and application scenarios.
getter/setter pair
audioScenario AudioScenario
Sets the audio parameters and application scenarios.
getter/setter pair
channelProfile ChannelProfile
The Agora RtcEngine differentiates channel profiles and applies different optimization algorithms accordingly.
final
clientRole ClientRole
Sets the role of a user in a live interactive streaming. This method applies only when channelProfile is set to ChannelProfile.LiveBroadcasting
getter/setter pair
enableDualStreamMode bool
Enables/Disables the dual video stream mode.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
isActiveSpeakerDisabled bool
Active Speaker method automatically pins the active speaker to the main view. By default active speaker is enabled.
final
localPublishFallbackOption StreamFallbackOptions?
Sets the fallback option for the locally published video stream based on the network conditions.
getter/setter pair
muteAllRemoteAudioStreams bool
Stops/Resumes receiving all remote video streams.
getter/setter pair
muteAllRemoteVideoStreams bool
Stops/Resumes receiving all remote audio streams.
getter/setter pair
remoteSubscribeFallbackOption StreamFallbackOptions?
Sets the fallback option for the remotely subscribed video stream based on the network conditions.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
setBeautyEffectOptions BeautyOptions?
Enhancess the image being streamed on the channel.
getter/setter pair
setCameraAutoFocusFaceModeEnabled bool
Enables the camera auto-face focus function.
getter/setter pair
setCameraTorchOn bool
Enables the camera flash function.
getter/setter pair
videoEncoderConfiguration VideoEncoderConfiguration?
Each video encoder configuration corresponds to a set of video parameters, including the resolution, frame rate, bitrate, and video orientation.
getter/setter pair

Methods

copyWith({ChannelProfile? channelProfile, ClientRole? clientRole, VideoEncoderConfiguration? videoEncoderConfiguration, bool? setCameraAutoFocusFaceModeEnabled, bool? enableDualStreamMode, StreamFallbackOptions? localPublishFallbackOption, StreamFallbackOptions? remoteSubscribeFallbackOption, AudioProfile? audioProfile, AudioScenario? audioScenario, BeautyOptions? setBeautyEffectOptions, bool? setCameraTorchOn, bool? muteAllRemoteVideoStreams, bool? muteAllRemoteAudioStreams, bool? isActiveSpeakerDisabled}) AgoraChannelData
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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