AudioFocusManager class
音频焦点管理工具类 用于管理音频焦点,特别是在从 WebRTC 等通信场景返回后恢复音频播放 这是一个独立的工具类,不依赖于 PcmStreamRecorder
Constructors
Properties
- hashCode → int
-
The hash code for this object.
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
Static Methods
-
resetAudioFocus(
) → Future< bool> - 重置音频焦点 用于在从其他页面(如 WebRTC 聊天页面)返回后,立即恢复音频播放的正常状态 会将音频会话/音频焦点重置为适合媒体播放的模式