getQoSStatistics method
Get the full video QoS statistics for this user, including the new
fields introduced in Zoom Video SDK 2.5.x (codec, rtt, jitter,
packets, bandwidth, avg/max packet loss, etc.).
Return a ZoomVideoSdkQOSStatistics object, or null if the
underlying SDK has no statistics available.
Implementation
@override
Future<ZoomVideoSdkQOSStatistics?> getQoSStatistics() async {
var params = <String, dynamic>{};
params.putIfAbsent("userId", () => userId);
final json = await methodChannel
.invokeMethod<String?>('getUserVideoQoSStatistics', params);
if (json == null || json.isEmpty) {
return null;
}
return ZoomVideoSdkQOSStatistics.fromJson(
jsonDecode(json) as Map<String, dynamic>);
}