Playback of WisePlay encrypted content
To test this feature and view the example code, please see the (5.33.x) Android SDK 5 Example Code Quick Start guide.
The CONNECT Player SDK provides tools to enable playback of WisePlay encrypted streams. Typically, WisePlay is supported on Huawei Android devices.
As for Widevine, WisePlay protection is for DASH streams only. WisePlay does not yet support the following features :
Offline playback
Key-rotation and temporal licence pre-delivery
Key-per-track content
Secure Session Management (SSM). The provided
OTVSSMHttpMediaDrmCallback
class currently only works with Widevine streams. However, you can implement session control according to the specifics of the Session Management server they use. See the customised-encrypted-playback example code for customising the DRM callback class.
Enabling WisePlay
Enabling playback of WisePlay protected streams is similar to enabling playback for Widevine protected streams. Follow the instructions for Widevine, and then modify the changes according to the instructions here. The changes required involve setting up the DRM callback class (usually OTVHttpMediaDrmCallback
) slightly differently:
The HTTP headers (the key request properties) are different.
The DRM type needs to be set explicitly to WisePlay.
Configure the DRM handler using the
setKeyRequestProperty()
method. The values below are typical for WisePlay systems. However, you are advised to consult the providers of the WisePlay licence server.JAVAdrmCallback.setKeyRequestProperty("Accept", "application/json"); drmCallback.setKeyRequestProperty("Content-Type", "application/json");
For NAGRA-provided licence servers, the
Accept
andContent-Type
values must be set toapplication/json
. Binary formats are not supported.Explicitly set the DRM type of the
OTVMediaDrmCallback
implementation (e.g.OTVHttpMediaDrmCallback
) to WisePlay:JAVAdrmCallback..setDrmType(OTVCommonMediaDrmCallback.OTV_DRMTYPE_WISEPLAY);