onCallCandidates method

Future<void> onCallCandidates(
  1. Room room,
  2. Map<String, dynamic> content
)

Implementation

Future<void> onCallCandidates(Room room, Map<String, dynamic> content) async {
  Logs().v('[VOIP] onCallCandidates => ${content.toString()}');
  final String callId = content['call_id'];
  final call = calls[VoipId(roomId: room.id, callId: callId)];
  if (call != null) {
    await call.onCandidatesReceived(content['candidates']);
  } else {
    Logs().v('[VOIP] onCallCandidates: Session [$callId] not found!');
  }
}