Android.Media.MediaDrm.ProvideKeyResponse Method
A key response is received from the license server by the app, then it is provided to the DRM engine plugin using provideKeyResponse.

Syntax

[Android.Runtime.Register("provideKeyResponse", "([B[B)[B", "")]
public byte[] ProvideKeyResponse (byte[] scope, byte[] response)

Parameters

scope
may be a sessionId or keySetId depending on the type of the response. Scope should be set to the sessionId when the response is for either streaming or offline key requests. Scope should be set to the keySetId when the response is for a release request.
response
the byte array response from the server

Returns

Documentation for this section has not yet been entered.

Exceptions

TypeReason
Android.Media.NotProvisionedExceptionif the response indicates that reprovisioning is required
Android.Media.DeniedByServerExceptionif the response indicates that the server rejected the request
Android.Media.ResourceBusyExceptionif required resources are in use

Remarks

A key response is received from the license server by the app, then it is provided to the DRM engine plugin using provideKeyResponse. When the response is for an offline key request, a keySetId is returned that can be used to later restore the keys to a new session with the method MediaDrm.RestoreKeys(Byte[], System.Byte[]). When the response is for a streaming or release request, null is returned.

[Android Documentation]

Requirements

Namespace: Android.Media
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 18