MediaCapabilitiesKeySystemConfiguration constructor

MediaCapabilitiesKeySystemConfiguration({
  1. required String keySystem,
  2. String? initDataType,
  3. MediaKeysRequirement? distinctiveIdentifier,
  4. MediaKeysRequirement? persistentState,
  5. Iterable<String>? sessionTypes,
  6. KeySystemTrackConfiguration? audio,
  7. KeySystemTrackConfiguration? video,
})

Implementation

factory MediaCapabilitiesKeySystemConfiguration(
        {required String keySystem,
        String? initDataType,
        MediaKeysRequirement? distinctiveIdentifier,
        MediaKeysRequirement? persistentState,
        Iterable<String>? sessionTypes,
        KeySystemTrackConfiguration? audio,
        KeySystemTrackConfiguration? video}) =>
    MediaCapabilitiesKeySystemConfiguration._(
        keySystem: keySystem,
        initDataType: initDataType ?? '',
        distinctiveIdentifier: distinctiveIdentifier?.value ??
            MediaKeysRequirement.optional.value,
        persistentState:
            persistentState?.value ?? MediaKeysRequirement.optional.value,
        sessionTypes: sessionTypes ?? undefined,
        audio: audio ?? undefined,
        video: video ?? undefined);