rtcEngine$onAudioDeviceVolumeChanged$volume$muted method
FutureOr<void>
rtcEngine$onAudioDeviceVolumeChanged$volume$muted(
- ByteRTCEngine engine,
- ByteRTCAudioDeviceType deviceType,
- int volume,
- bool muted,
@hidden(iOS)
@detail callback
@author caocun
@brief 音频设备音量改变回调。当通过系统设置,改变音频设备音量或静音状态时,触发本回调。本回调无需手动开启。
@param engine 参看 ByteRTCEngine{@link #ByteRTCEngine}
@param deviceType 设备类型,包括麦克风和扬声器,参阅 ByteRTCAudioDeviceType{@link #ByteRTCAudioDeviceType}。
@param volume 音量值,0, 255。当 volume 变为 0 时,muted 会转为 True。
@param muted 是否禁音状态。扬声器被设置为禁音时,muted 为 True,但 volume 保持不变。
Implementation
FutureOr<void> rtcEngine$onAudioDeviceVolumeChanged$volume$muted(
ByteRTCEngine engine,
ByteRTCAudioDeviceType deviceType,
int volume,
bool muted) async {}