• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# native_drm_err.h
2
3## Overview
4
5The file declares the DRM error codes.
6
7**File to include**: <multimedia/drm_framework/native_drm_err.h>
8
9**Library**: libnative_drm.z.so
10
11**System capability**: SystemCapability.Multimedia.Drm.Core
12
13**Since**: 11
14
15**Related module**: [Drm](capi-drm.md)
16
17## Summary
18
19### Enums
20
21| Name| typedef Keyword| Description|
22| -- | -- | -- |
23| [Drm_ErrCode](#drm_errcode) | Drm_ErrCode | Enumerates the DRM error codes.|
24
25## Enum Description
26
27### Drm_ErrCode
28
29```
30enum Drm_ErrCode
31```
32
33**Description**
34
35Enumerates the DRM error codes.
36
37**System capability**: SystemCapability.Multimedia.Drm.Core
38
39**Since**: 11
40
41| Enum Item| Description|
42| -- | -- |
43| DRM_ERR_OK = 0 | Operation successful.|
44| DRM_CAPI_ERR_BASE = 24700500 | Basic error.|
45| DRM_ERR_NO_MEMORY = DRM_CAPI_ERR_BASE + 1 | Insufficient memory.|
46| DRM_ERR_OPERATION_NOT_PERMITTED = DRM_CAPI_ERR_BASE + 2 | Unsupported operation.|
47| DRM_ERR_INVALID_VAL = DRM_CAPI_ERR_BASE + 3 | Invalid parameter.|
48| DRM_ERR_IO = DRM_CAPI_ERR_BASE + 4 | I/O error.|
49| DRM_ERR_TIMEOUT = DRM_CAPI_ERR_BASE + 5 | Network timeout.|
50| DRM_ERR_UNKNOWN = DRM_CAPI_ERR_BASE + 6 | Unknown error.|
51| DRM_ERR_SERVICE_DIED = DRM_CAPI_ERR_BASE + 7 | DRM service error.|
52| DRM_ERR_INVALID_STATE = DRM_CAPI_ERR_BASE + 8 | Invalid operation status.|
53| DRM_ERR_UNSUPPORTED = DRM_CAPI_ERR_BASE + 9 | Unsupported operation.|
54| DRM_ERR_MAX_SYSTEM_NUM_REACHED = DRM_CAPI_ERR_BASE + 10 | Too many MediaKeySystem instances.|
55| DRM_ERR_MAX_SESSION_NUM_REACHED = DRM_CAPI_ERR_BASE + 11 | Too many MediaKeySession instances.|
56| DRM_ERR_EXTEND_START  = DRM_CAPI_ERR_BASE + 100 | Extended error.|
57