getTransportStats method
Retrieves ICE/DTLS transport statistics for the participant.
- Unlike getVideoStats and getAudioStats, which describe one track, these describe the transport every track of this participant rides on: the selected candidate pair, round-trip time and bytes moved.
Returns
- A
Map<String, dynamic>?of transport statistics, ornullwhen the transport is not up yet.
Example
final transport = await participant.getTransportStats();
print('RTT: ${transport?['rtt']} ms');
Implementation
Future<Map<String, dynamic>?> getTransportStats() async =>
_transportStatsHandler == null ? null : await _transportStatsHandler!(id);