domain/mobile_source_selector library

Classes

MobileSourceSelector
Pure-Dart selection rule for mobile platforms: given a list of ByteArkPlayerSources, return the first one whose DRM matches the target platform's capabilities. On mobile, exactly one of WidevineDrm or FairPlayDrm is supported (Android or iOS); a non-DRM source (drm == null) is always playable on both.

Exceptions / Errors

NoCompatibleSourceException
Thrown when no ByteArkPlayerSource in a Player Item's sources list is playable on the current platform.