Platform Player
The Platform Player library is a wrapper on top of Player library that bridges player with Quickplay platform to provide platform features.
The library is predominately a proxy of Player library with platform specific implementations like Zero Trust Compliant License Requests. The delegate implementation available with this library is Zero Trust compliant (secured with authorization header).
Usage
The library provides methods to create player and related instances for consumption.
// creating player with url
let url = URL(string: "https://someurl.m3u8")!
let player = FLPlatformPlayerFactory.player(contentUrl: url)
// creating player with avasset
let asset = AVURLAsset(url: url)
let anotherPlayer = FLPlatformPlayerFactory.player(asset: asset)
// creating composable player
let composedPlayer = FLPlatformPlayerFactory.composablePlayer(player: player)
// creating license fetcher
let licenseFetcher = FLPlatformPlayerFactory.fairplaylicenseFetcher()
// creating license delegate
let licenseDelegate = FLPlatformPlayerFactory.fairplayLicenseFetcherDelegate(applicationCertificate: appCertData,
licenseUrl: licenseUrl,
skd: skd,
keyDeliveryType: .streamingKey,
platformAuthorizer: platformAuthorizer)