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
JWDRMContentLoaderis initialized with aJWDRMDataSourceandJWDRMContentKeyManager. TheJWDRMDataSourcesupplies the content keys. TheJWDRMContentKeyManagerstores the content keys.- After the
JWDRMContentLoaderhas been initialized, you can pass either a playlist comprised of an array ofJWPlayerItemsor a playlist URL generated through your JWP dashboard.- User initiates playback.
- Informed of the acquisition of content keys, the
JWDRMContentKeyManagerpermits protected content playback or deletes downloaded content from the device.The
JWDRMContentKeyManagermust be implemented outside of the iOS SDK. JWP makes available a default, customizableJWDRMContentKeyManagerin 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 almost 2 years ago
