isVoiceOnly method

bool isVoiceOnly()

Implementation

bool isVoiceOnly() {
  if (_localStream == null) {
    if (_remoteStream == null) {
      return true;
    } else if (_remoteStream!.getVideoTracks().isEmpty) {
      return true;
    }
  } else if (_localStream!.getVideoTracks().isEmpty) {
    if (_remoteStream == null) {
      return true;
    } else if (_remoteStream!.getVideoTracks().isEmpty) {
      return true;
    }
  }
  return false;
}