firstTrackEncryptionType property

EncryptionType firstTrackEncryptionType

Implementation

EncryptionType get firstTrackEncryptionType {
  if (hasAudio) {
    return audioTracks.first.encryptionType;
  } else if (hasVideo) {
    return videoTracks.first.encryptionType;
  } else {
    return EncryptionType.kNone;
  }
}