getLocalStats method

Future<Map<String, dynamic>> getLocalStats()

Gets the standard WebRTC statistics.

Implementation

Future<Map<String, dynamic>> getLocalStats() async {
  final result =
      await _methodChannel.invokeMapMethod<String, String>("getLocalStats");
  if (result != null) {
    final map = <String, dynamic>{};
    result.forEach((key, value) {
      map[key] = jsonDecode(value);
    });
    return map;
  }
  return {};
}