Platform Player
The Platform Player library wraps the Player library to bridge your player with Quickplay platform and provide platform features.
The library serves primarily as a proxy for the Player library with platform-specific implementations like Zero Trust Compliant License Requests. The delegate implementation available with this library is Zero Trust compliant and secured with an authorization header.
Usage
The library provides methods you can use to create player and related instances.
// 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)