onWTNRemoteVideoStats 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 stats Remote WTN video stream statistics. See RemoteVideoStats{@link #RemoteVideoStats}.
@order 0
Implementation
FutureOr<void> onWTNRemoteVideoStats(dynamic streamId, dynamic stats) async {
if ($instance == null || $instance is! IWTNStreamEventHandler) {
return;
}
return ($instance as IWTNStreamEventHandler).onWTNRemoteVideoStats?.call(
streamId.toString(),
packObject(
stats,
() => RemoteVideoStats.fromMap(RemoteVideoStats.deepPackedMapValues(
RemoteVideoStats.mapMemberToConstructorParams(stats)))));
}