rtcEngine$onRemoteAudioPropertiesReportEx method
FutureOr<void>
rtcEngine$onRemoteAudioPropertiesReportEx(
- dynamic engine,
- List audioPropertiesInfos
override
@hidden for internal use only @detail callback @author shenpengliang @brief 房间内用户暂停/恢复发送视频流时,房间内其他用户会收到此回调。 @param engine ByteRTCEngine 实例 @param roomId 房间 ID @param uid 暂停/恢复发送视频流的用户 ID。 @param muteState 视频流的发送状态。参看 ByteRTCMuteState{@link #ByteRTCMuteState}。
Implementation
FutureOr<void> rtcEngine$onRemoteAudioPropertiesReportEx(
dynamic engine, List<dynamic> audioPropertiesInfos) async {
if ($instance == null || $instance is! IRTCEngineEventHandler) {
return;
}
return ($instance as IRTCEngineEventHandler)
.onRemoteAudioPropertiesReportEx
?.call(
audioPropertiesInfos
.map((e) => packObject(
e,
() => RemoteAudioPropertiesInfo.fromMap(
RemoteAudioPropertiesInfo.deepPackedMapValues(
RemoteAudioPropertiesInfo
.mapMemberToConstructorParams(e)))))
.toList(),
int.tryParse((await audioPropertiesInfos).toString()) ?? 0);
}