DRM(Digital rights managements)

Add drm protection to AVDoris source easily

DorisSource has drm property that you can use to manage digital rights. Attach DRM data to the source before loading

Example of DRM usage

let contentUrl = URL(string: "https://bitdash-a.akamaihd.net/content/sintel/hls/playlist.m3u8")!
let drm = DorisDRMSource(contentUrl: contentUrl.absoluteString, croToken: "", licensingServerUrl: "")
let source = DorisSource(type: .url(URL(string: "https://bitdash-a.akamaihd.net/content/sintel/hls/playlist.m3u8")!), drm: drm)

avDoris.load(source: source)

Note

DRM is covered by Apple’s Fairplay technology and is only available on real devices, simulators are not supported

Doris