Content Protection (DRM) Configuration
A DRM (Digital Rights Management) license URL is a URL that points to a server that issues licenses for protected digital content. When content is protected by DRM, it is encrypted to prevent unauthorized access and distribution. In order to view or use the content, the user needs a license that grants them permission to do so. The license contains information such as the user's rights to the content, the expiration date of the license, and the decryption key needed to access the content.
There are two ways for LuraPlayer to play encrypted content protected with Digital Rights Management (DRM) systems. LuraPlayer currently supports fairplay for Apple platforms.
Generic Configuration
You can add DRM to your content from MCP to let the Akta Token Exchange System (TKX) handle the configuration side. Follow the guide in Adding DRM to Your Content From MCP page.
FairPlay
For fairplay, the license URL and fairplay certificate data properties must be specified.
let aktaMedia = AktaMedia()
var drmData = AktaDrmData()
drmData.licenseUrl = URL(string: "License URL")
drmData.certificateData = Data(base64Encoded: "Base 64 encoded certificate")
aktaMedia.mediaUrl = contentUrl
aktaMedia.drmData = drmData
self?.player?.load(media: aktaMedia, completion: { [weak self] loaded, error in
if loaded {
self?.player?.play()
}
})