To play encrypted content using Adobe Access, perform the
following steps:
-
Using
VoucherAccessInfo.deviceGroup
,
check if device group registration is required.
-
If authentication is required:
-
Use the
DeviceGroupInfo.authenticationMethod
property
find out if authentication is required.
-
If authentication is required, authenticate the user by performing
ONE of the following steps:
-
Obtain user’s username
and password. Invoke
DRMManager.authenticate(deviceGroup.serverURL, deviceGroup.domain, username, password)
.
-
Obtain a cached/pre-generated authentication token and invoke
DRMManager.setAuthenticationToken()
.
-
Invoke
DRMManager.addToDeviceGroup()
.
-
Get the voucher for the content by performing one of the
following tasks:
-
Use the
DRMManager.loadVoucher()
method.
-
Obtain the voucher from a different device registered in
the same device group. Provide the voucher to the
DRMManager
through
the
DRMManager.storeVoucher()
method.
-
Play the encrypted content using the
NetStream.play()
method.
To export the license for the content, any of the devices can
provide the license’s raw bytes using the
DRMVoucher.toByteArray()
method
after obtaining the license from the Adobe Access License Server.
Content providers typically limit the number of devices in a device
group. If the limit is reached, you may need to call the
DRMManager.removeFromDeviceGroup()
method
on an unused device before registering the current device.
|
|
|