Search in sources :

Example 1 with KeyRequest

use of android.media.MediaDrm.KeyRequest in project edx-app-android by edx.

the class StreamingDrmSessionManager method postKeyRequest.

private void postKeyRequest() {
    KeyRequest keyRequest;
    try {
        keyRequest = mediaDrm.getKeyRequest(sessionId, schemePsshData, mimeType, MediaDrm.KEY_TYPE_STREAMING, null);
        postRequestHandler.obtainMessage(MSG_KEYS, keyRequest).sendToTarget();
    } catch (NotProvisionedException e) {
        onKeysError(e);
    }
}
Also used : KeyRequest(android.media.MediaDrm.KeyRequest) NotProvisionedException(android.media.NotProvisionedException)

Aggregations

KeyRequest (android.media.MediaDrm.KeyRequest)1 NotProvisionedException (android.media.NotProvisionedException)1