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