ByteRTCLocalAudioStreamState enum

Inheritance
Available extensions

Values

ByteRTCLocalAudioStreamStateStopped → const ByteRTCLocalAudioStreamState

@brief The default initial state of the local audio.
Callback to this state when the microphone stops working, corresponding to the error code ByteRTCLocalAudioStreamError{@link #ByteRTCLocalAudioStreamError} in ByteRTCLocalAudioStreamErrorOk

ByteRTCLocalAudioStreamStateRecording → const ByteRTCLocalAudioStreamState

@brief The local audio recording device started successfully.
Callback to this state when the first audio frame is collected, corresponding to the error code ByteRTCLocalAudioStreamError{@link #ByteRTCLocalAudioStreamError} in ByteRTCLocalAudioStreamErrorOk

ByteRTCLocalAudioStreamStateEncoding → const ByteRTCLocalAudioStreamState

@brief The first frame of the local audio was successfully encoded.
Callback to this state when the audio first frame encoding is successful, corresponding to the error code ByteRTCLocalAudioStreamError{@link #ByteRTCLocalAudioStreamError} in ByteRTCLocalAudioStreamErrorOk

ByteRTCLocalAudioStreamStateFailed → const ByteRTCLocalAudioStreamState

@brief The local audio startup failed, and the status is called back at the following times:
- The local recording device failed to start, corresponding to the error code ByteRTCLocalAudioStreamError{@link #ByteRTCLocalAudioStreamError} ByteRTCLocalAudioStreamErrorRecordFailure - No recording device permission was detected, corresponding to the error code ByteRTCLocalAudioStreamError{@link #ByteRTCLocalAudioStreamError} ByteRTCLocalAudioStreamErrorDeviceNoPermission - The audio encoding failed, corresponding to the error code ByteRTCLocalAudioStreamError{@link #ByteRTCLocalAudioStreamError} in ByteRTCLocalAudioStreamError

Properties

$value → dynamic
final
hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
no setterinherited
name String

Available on Enum, provided by the EnumName extension

The name of the enum value.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

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

Constants

values → const List<ByteRTCLocalAudioStreamState>
A constant List of the values in this enum, in order of their declaration.