getCallType method

CallType getCallType(
  1. String sdp
)

Implementation

CallType getCallType(String sdp) {
  try {
    final session = sdp_transform.parse(sdp);
    if (session['media'].indexWhere((e) => e['type'] == 'video') != -1) {
      return CallType.kVideo;
    }
  } catch (e, s) {
    Logs().e('Failed to getCallType', e, s);
  }

  return CallType.kVoice;
}