LocalAudioStreamState enum

本地音频流状态,及在 LocalAudioStreamError 中对应的错误码

Inheritance
Available extensions

Values

stopped → const LocalAudioStreamState

本地音频默认初始状态

麦克风停止工作时回调该状态,对应错误码 ok

recording → const LocalAudioStreamState

本地音频录制设备启动成功

采集到音频首帧时回调该状态,对应错误码 ok

encoding → const LocalAudioStreamState

本地音频首帧编码成功。

音频首帧编码成功时回调该状态,对应错误码 ok

failed → const LocalAudioStreamState

本地音频启动失败,在以下时机回调该状态:

  • 本地录音设备启动失败,对应错误码 recordFailure
  • 检测到没有录音设备权限,对应错误码 deviceNoPermission
  • 音频编码失败,对应错误码 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.