ByteArkPlayerSource.drm constructor

ByteArkPlayerSource.drm({
  1. required String url,
  2. required ByteArkDrm drm,
  3. String? type,
})

Creates a DRM-protected ByteArkPlayerSource. The drm argument is required; the MIME type defaults from the DRM scheme when omitted (HLS for FairPlay, DASH for Widevine).

Implementation

ByteArkPlayerSource.drm({
  required this.url,
  required ByteArkDrm this.drm,
  String? type,
}) : type = type ?? _inferTypeFromDrm(drm);