Enabling offline playback consists of two stages:
-
Offline playback of clear content
-
Offline playback of PRM-encrypted content
Offline playback of clear content
The lifecycle for offline playback of clear content is as follows:
-
To acquire a downloadable asset, the application must register the content URL to the downloader. The downloader provides information about the asset to download during that step.
-
The application triggers the effective download and persistency of the media data.
-
The application can watch the downloaded asset in a similar manner to streamed content.
-
The application purges the asset when the user no longer needs it.
Prerequisites
-
The player must have been created, and the application configured to play clear content.
-
A clear stream with download enabled is available for testing.
Offline playback of PRM-encrypted content
Additional steps are required where the content is encrypted:
-
The application registers the content URL to the downloader. The downloader provides information about the asset to download during that step.
-
If the content is PRM-protected, the application must retrieve the associated licence, either by using its own identifier mechanism or using the PRM content ID exposed on the download. A challenge/response exchange occurs with the licence server, and the licence payload that the server returns must be imported into the PAK by the application.
-
If the licence import is successful, the application can then trigger the effective download and persistency of the media data.
-
Once the licence and the asset are successfully acquired, the application can watch the downloaded asset in a similar manner to streamed content.
-
The application purges the licence and asset when the user no longer needs it.
Prerequisites
-
The player must have been created and the application configured to play clear content.
-
An encrypted stream with download enabled is available for testing
First step: Register the download