public protocol DrmAPI
DRM Interface.
public protocol DrmAPI
DRM Interface.
If set to true
prevents app from crashing when a debug session is attached. Expected
playback failure on DRM protected content.
Remark
Default value isfalse
.
Swift
var enableDebugging: Bool { get set }
Triggered when drm state changes.
Swift
var onDrmState: ((DRMState) -> Void)? { get set }
Checks if the current DRM Instance can decrypt the content received in the player configuration.
Swift
func canDecrypt(_ config: PlayerConfiguration) -> Bool
config
|
Player configuration. |
true
if the current DRM Instance can decrypt a given player configuration.