Configure offline DRM (iOS)
Allow users to download and view DRM content without connection to the Internet.
Offline DRM playback is only supported by JWPlayerKit.
By requiring authorization from a key manager, DRM protects content from unauthorized consumption. However, there are situations when your viewers are offline and cannot immediately request this authorization.
Without instantiating a player, JWPlayerKit
uses the JWDRMContentLoader
to enable downloading your DRM-protected content and the required authorization. Later, a viewer can play the protected content offline.
Flow Explanation
- The
JWDRMContentLoader
is initialized with aJWDRMDataSource
andJWDRMContentKeyManager
. TheJWDRMDataSource
supplies the content keys. TheJWDRMContentKeyManager
stores the content keys.- After the
JWDRMContentLoader
has been initialized, you can pass either a playlist comprised of an array ofJWPlayerItems
or a playlist URL generated through your JWP dashboard.- User initiates playback.
- Informed of the acquisition of content keys, the
JWDRMContentKeyManager
permits protected content playback or deletes downloaded content from the device.The
JWDRMContentKeyManager
must be implemented outside of the iOS SDK. JWP makes available a default, customizableJWDRMContentKeyManager
in the Best Practice Apps repository.
- When the user initiates playback, authorized protected content plays.
Implementation
Use the following recipe to configure offline DRM playback.
Updated 12 months ago