Adobe Flex 3 Help

Using the DRMErrorEvent class

The DRMErrorEvent object reports all errors related to DRM-protected content, with the exception of invalid user credentials. In the case of invalid user credentials, the DRMAuthenticateEvent object is repeatedly thrown until the user enters valid credentials, or the AIR application denies further attempts.

Note: If a user enters valid credentials, they still may not be allowed to view the encrypted content, depending on the terms of the encryption policy. For example, if the user is attempting to view the content in an unauthorized application, that is, an application that is not validated by the publisher of the encrypted content. In this case, a DRMErrorEvent object is thrown.

Contents

DRMErrorEvent properties

The DRMErrorEvent class includes the following property:

subErrorCode

Indicates the minor error code associated with the error.

October 31, 2008: Added corrected error codes
The following table lists the errors that the DRMErrorEvent object reports:

Major Error Code

Minor Error Code

Error Details

Description

3300Adobe Policy Server error coden/aThe application detected an invalid voucher associated with the content.
33010n/aUser authentication failed.
33020n/aSecure Sockets Layer (SSL) is not supported by the Flash Media Rights Management Server (FMRMS).
33030n/aThe content has expired and is no longer available for viewing.
33040n/aUser authorization failure. This can occur even if the user is authenticated, for example, if the user has not purchased the rights to view the content.
33050Server URLCannot connect to the server.
33060n/aA client update is required; Flash Media Rights Management Server requires a new digital rights management client engine.
33070n/aGeneric internal digital rights management failure.
3308Detailed decryption error coden/aAn incorrect license key.
33090n/aFlash video content is corrupted.
33100publisherID:applicationIDThe ID of the viewing application does not match a valid ID supported by the content publisher. The content provider does not support the application.
33110Min=x:max=yApplication version does not match what is specified in the voucher.
33120n/aVerification of the voucher associated with the encrypted content failed, indicating that the content may be corrupted.
33130n/aThe voucher associated with the encrypted content could not be saved to Microsafe.
33140n/aVerification of the FLV header integrity failed, indicating that the content may be corrupted.
3315 0 n/a Remote playback of the DRM protected content is not allowed.

Creating a DRMErrorEvent handler

The following example creates an event handler that outputs the DRM content error information for the NetStream object that originated the event. Add this event handler to a NetStream object that points to DRM-encrypted content.

ActionScript example:

private function drmErrorEventHandler(event:DRMErrorEvent):void 
{
    trace(event.toString());
}