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.
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 |
|---|---|---|---|
3300 | Adobe Policy Server error code | n/a | The application detected an invalid voucher associated with the content. |
3301 | 0 | n/a | User authentication failed. |
3302 | 0 | n/a | Secure Sockets Layer (SSL) is not supported by the Flash Media Rights Management Server (FMRMS). |
3303 | 0 | n/a | The content has expired and is no longer available for viewing. |
3304 | 0 | n/a | User 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. |
3305 | 0 | Server URL | Cannot connect to the server. |
3306 | 0 | n/a | A client update is required; Flash Media Rights Management Server requires a new digital rights management client engine. |
3307 | 0 | n/a | Generic internal digital rights management failure. |
3308 | Detailed decryption error code | n/a | An incorrect license key. |
3309 | 0 | n/a | Flash video content is corrupted. |
3310 | 0 | publisherID:applicationID | The ID of the viewing application does not match a valid ID supported by the content publisher. The content provider does not support the application. |
3311 | 0 | Min=x:max=y | Application version does not match what is specified in the voucher. |
3312 | 0 | n/a | Verification of the voucher associated with the encrypted content failed, indicating that the content may be corrupted. |
3313 | 0 | n/a | The voucher associated with the encrypted content could not be saved to Microsafe. |
3314 | 0 | n/a | Verification 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. |
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());
}