LocalAudioStreamState enum

Local audio stream status.

Inheritance

Constructors

LocalAudioStreamState()
const

Values

stopped → const LocalAudioStreamState

The default initial state of the local audio.

SDK will return this state when the microphone stops working. The corresponding error code is ok.

recording → const LocalAudioStreamState

The local audio recording device starts successfully.

SDK will return this state after successfully capturing the first audio frame. The corresponding error code is ok.

encoding → const LocalAudioStreamState

The first frame of the local audio was successfully encoded. The corresponding error code is ok.

failed → const LocalAudioStreamState

The local audio startup failed, and the status is called back at the following times:

  • The local recording device failed to start, the corresponding error code is recordFailure.
  • No recording device permission was detected, the corresponding error code is deviceNoPermission.
  • Audio encoding failed, the corresponding error code is encodeFailure.

Properties

hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
no setterinherited
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<LocalAudioStreamState>
A constant List of the values in this enum, in order of their declaration.