AudioMixingReason enum Null safety

The reason for the change of the music file playback state, reported in the RtcEngineEventHandler.audioMixingStateChanged.

Constants

AllLoopsCompleted → const AudioMixingReason

The music file completes all loop playback.

@JsonValue(723)
const AudioMixingReason(6)
CanNotOpen → const AudioMixingReason

The SDK cannot open the music file. Possible causes include the local music file does not exist, the SDK does not support the file format, or the SDK cannot access the music file URL.

@JsonValue(701)
const AudioMixingReason(0)
InterruptedEOF → const AudioMixingReason

The music file playback is interrupted.

@JsonValue(703)
const AudioMixingReason(2)
OK → const AudioMixingReason

No error.

@JsonValue(0)
const AudioMixingReason(10)
OneLoopCompleted → const AudioMixingReason

The music file completes a loop playback.

@JsonValue(721)
const AudioMixingReason(4)
PausedByUser → const AudioMixingReason

Successfully calls pauseAudioMixing to pause playing the music file.

@JsonValue(725)
const AudioMixingReason(8)
ResumedByUser → const AudioMixingReason

Successfully calls resumeAudioMixing to resume playing the music file.

@JsonValue(726)
const AudioMixingReason(9)
StartedByUser → const AudioMixingReason

Successfully calls startAudioMixing to play a music file.

@JsonValue(720)
const AudioMixingReason(3)
StartNewLoop → const AudioMixingReason

The music file starts a new loop playback.

@JsonValue(722)
const AudioMixingReason(5)
StoppedByUser → const AudioMixingReason

Successfully calls stopAudioMixing to stop playing the music file.

@JsonValue(724)
const AudioMixingReason(7)
TooFrequentCall → const AudioMixingReason

The SDK opens the music file too frequently. If you need to call RtcEngine.startAudioMixing multiple times, ensure that the call interval is longer than 500 ms.

@JsonValue(702)
const AudioMixingReason(1)
values → const List<AudioMixingReason>

A constant List of the values in this enum, in order of their declaration.

const List<AudioMixingReason>

Properties

hashCode int
The hash code for this object. [...]
read-only, inherited
index int

The integer index of this enum.

final
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
A string representation of this object. [...]
override

Operators

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