onIceGatheringStateChanged method

  1. @override
void onIceGatheringStateChanged(
  1. int userId,
  2. RTCIceGatheringState state
)

Implementation

@override
void onIceGatheringStateChanged(int userId, RTCIceGatheringState state) {
  super.onIceGatheringStateChanged(userId, state);
  if (state == RTCIceGatheringState.RTCIceGatheringStateComplete) {
    sendIceCandidateComplete(userId);
  }
}