startCallTracking method

void startCallTracking(
  1. String callId, {
  2. bool isOutbound = false,
  3. bool useTrickleIce = true,
})

Starts tracking latency for a new call. callId The unique identifier for the call. isOutbound True for outbound calls, false for inbound. useTrickleIce True when trickle ICE is enabled for this call.

Implementation

void startCallTracking(
  String callId, {
  bool isOutbound = false,
  bool useTrickleIce = true,
}) {
  _callTrackers[callId] = _CallTrackingState(
    startTime: DateTime.now().millisecondsSinceEpoch,
    isOutbound: isOutbound,
    iceMode: useTrickleIce ? 'trickle' : 'standard',
  );
  markCallMilestone(callId, milestoneCallInitiated);
}