startCollectingStat method

dynamic startCollectingStat(
  1. RTCPeerConnection conn
)

Implementation

startCollectingStat(RTCPeerConnection conn) {
  statsLoop() async {
    await getConnectionStats(conn);
    var timer = Timer(const Duration(milliseconds: 1000), () => statsLoop);
    timer;
  }

  statsLoop();
}