Please note that the contents of this offline web site may be out of date. To access the most recent documentation visit the online version .
Note that links that point to online resources are green in color and will open in a new window.
We would love it if you could give us feedback about this material by filling this form (You have to be online to fill it)
Android APIs
public static final class

MediaDrm.KeyRequest

extends Object
java.lang.Object
   ↳ android.media.MediaDrm.KeyRequest

Class Overview

Contains the opaque data an app uses to request keys from a license server

Summary

Public Methods
byte[] getData ()
Get the opaque message data
String getDefaultUrl ()
Get the default URL to use when sending the key request message to a server, if known.
[Expand]
Inherited Methods
From class java.lang.Object

Public Methods

public byte[] getData ()

Get the opaque message data

public String getDefaultUrl ()

Get the default URL to use when sending the key request message to a server, if known. The app may prefer to use a different license server URL from other sources.