onWTNRemoteAudioStats$audioStats method
@detail callback
@valid since 3.60.
@author hanchenchen
@brief Remote WTN audio stream ID and statistics.
@param streamId ID of the WTN stream
@param audioStats Remote audio stream statistic. See ByteRTCRemoteAudioStats{@link #ByteRTCRemoteAudioStats}.
@order 1
Implementation
FutureOr<void> onWTNRemoteAudioStats$audioStats(
dynamic streamId, dynamic audioStats) async {
if ($instance == null || $instance is! IWTNStreamEventHandler) {
return;
}
return ($instance as IWTNStreamEventHandler).onWTNRemoteAudioStats?.call(
streamId.toString(),
packObject(
audioStats,
() => RemoteAudioStats.fromMap(RemoteAudioStats.deepPackedMapValues(
RemoteAudioStats.mapMemberToConstructorParams(audioStats)))));
}