MediaKeySystemConfiguration constructor

MediaKeySystemConfiguration({
  1. String? label,
  2. Iterable<String>? initDataTypes,
  3. Iterable<MediaKeySystemMediaCapability>? audioCapabilities,
  4. Iterable<MediaKeySystemMediaCapability>? videoCapabilities,
  5. MediaKeysRequirement? distinctiveIdentifier,
  6. MediaKeysRequirement? persistentState,
  7. Iterable<String>? sessionTypes,
})

Implementation

factory MediaKeySystemConfiguration(
        {String? label,
        Iterable<String>? initDataTypes,
        Iterable<MediaKeySystemMediaCapability>? audioCapabilities,
        Iterable<MediaKeySystemMediaCapability>? videoCapabilities,
        MediaKeysRequirement? distinctiveIdentifier,
        MediaKeysRequirement? persistentState,
        Iterable<String>? sessionTypes}) =>
    MediaKeySystemConfiguration._(
        label: label ?? '',
        initDataTypes: initDataTypes ?? const [],
        audioCapabilities: audioCapabilities ?? const [],
        videoCapabilities: videoCapabilities ?? const [],
        distinctiveIdentifier: distinctiveIdentifier?.value ??
            MediaKeysRequirement.optional.value,
        persistentState:
            persistentState?.value ?? MediaKeysRequirement.optional.value,
        sessionTypes: sessionTypes ?? undefined);