startDebugStats method

Future<bool> startDebugStats()

Starts the collection of debut stats for the call if debug mode is enabled, else false is returned

Implementation

Future<bool> startDebugStats() async {
  if (!debug) {
    _logger.d('Debug is disabled, will not connect stats');
    return false;
  }
  if (peerConnection == null) {
    _logger.d('Peer connection null');
    return false;
  }
  _logger.d('Peer connection debug started for $callId');
  return await peerConnection?.startStats(callId ?? '') ?? false;
}