Home
last modified time | relevance | path

Searched refs:mediaKeySession (Results 1 – 25 of 52) sorted by relevance

123

/ohos5.0/foundation/multimedia/drm_framework/frameworks/native/test/unittest/src/
H A Ddrm_framework_unittest.cpp534 EXPECT_NE(mediaKeySession, nullptr);
2973 mediaKeySession = nullptr;
2976 mediaKeySession = nullptr;
3039 if (mediaKeySession) {
3263 if (mediaKeySession) {
3296 if (mediaKeySession) {
3323 if (mediaKeySession) {
3353 if (mediaKeySession) {
3630 if (mediaKeySession) {
3652 if (mediaKeySession) { in killclearplay()
[all …]
/ohos5.0/foundation/multimedia/drm_framework/frameworks/native/test/fuzztest/mediakeysessionndk_fuzzer/
H A Dmediakeysessionndk_fuzzer.cpp210 OH_MediaKeySession_Destroy(mediaKeySession); in DestroySession()
211 mediaKeySession = nullptr; in DestroySession()
278 OH_MediaKeySession_CheckMediaKeyStatus(mediaKeySession, &mediaKeyStatus); in FuzzTestMediaKeySessionLicenseOperationNdk()
280 OH_MediaKeySession_ClearMediaKeys(mediaKeySession); in FuzzTestMediaKeySessionLicenseOperationNdk()
300 if (mediaKeySession != nullptr) { in FuzzTestMediaKeySessionLicenseOperationNdk()
301 OH_MediaKeySession_Destroy(mediaKeySession); in FuzzTestMediaKeySessionLicenseOperationNdk()
302 mediaKeySession = nullptr; in FuzzTestMediaKeySessionLicenseOperationNdk()
322 OH_MediaKeySession_SetCallback(mediaKeySession, &sessionCallbackObj); in FuzzTestMediaKeySessionsSetUpLicenseNdk()
332 if (mediaKeySession != nullptr) { in FuzzTestMediaKeySessionsSetUpLicenseNdk()
334 OH_MediaKeySession_Destroy(mediaKeySession); in FuzzTestMediaKeySessionsSetUpLicenseNdk()
[all …]
H A Dmediakeysessionndk_fuzzer.h46 MediaKeySession *mediaKeySession = nullptr; variable
/ohos5.0/docs/zh-cn/application-dev/media/drm/
H A Ddrm-mediakeysession-management.md28 mediaKeySession.on('keyRequired', (eventInfo: drm.EventInfo) => {
36 mediaKeySession.on('keyExpired', (eventInfo: drm.EventInfo) => {
44 mediaKeySession.on('vendorDefined', (eventInfo: drm.EventInfo) => {
52 mediaKeySession.on('expirationUpdate', (eventInfo: drm.EventInfo) => {
60 mediaKeySession.on('keysChange', (keyInfo : drm.KeysInfo[], newKeyAvailable:boolean) => {
81 mediaKeySession.processMediaKeyResponse(licenseResponse).then((mediaKeyId: Uint8Array) => {
95 mediaKeySession.processMediaKeyResponse(licenseResponse).then((mediaKeyId: Uint8Array) => {
110 let keyvalue: drm.MediaKeyStatus[] = mediaKeySession.checkMediaKeyStatus();
139 mediaKeySession.restoreOfflineMediaKeys(offlineMediaKeyId).then(() => {
161 let status: boolean = mediaKeySession.requireSecureDecoderModule("video/avc");
[all …]
H A Dnative-drm-mediakeysession-management.md55 …Drm_ErrCode ret = OH_MediaKeySession_SetMediaKeySessionCallback(mediaKeySession, &sessionCallback);
62 ret = OH_MediaKeySession_SetCallback(mediaKeySession, &sessionCallback);
83 ret = OH_MediaKeySession_GenerateMediaKeyRequest(mediaKeySession, &info, &mediaKeyRequest);
97 ret = OH_MediaKeySession_ProcessMediaKeyResponse(mediaKeySession, mediaKeyResponse,
108 ret = OH_MediaKeySession_CheckMediaKeyStatus(mediaKeySession, &mediaKeyStatus);
117 ret = OH_MediaKeySession_ClearMediaKeys(mediaKeySession);
128 ret = OH_MediaKeySession_GenerateOfflineReleaseRequest(mediaKeySession,
136 … ret = OH_MediaKeySession_ProcessOfflineReleaseResponse(mediaKeySession, mediaKeyId, mediaKeyIdLen,
147 ret = OH_MediaKeySession_RestoreOfflineMediaKeys(mediaKeySession, mediaKeyId, mediaKeyIdLen);
157 ret = OH_MediaKeySession_GetContentProtectionLevel(mediaKeySession,
[all …]
H A Dnative-drm-mediakeysystem-management.md90 MediaKeySession *mediaKeySession = nullptr;
92 …OH_MediaKeySystem_CreateMediaKeySession(mediaKeySystem, &contentProtectionLevel, &mediaKeySession);
93 if (ret != DRM_ERR_OK || mediaKeySession == nullptr) {
197 ret = OH_MediaKeySession_Destroy(mediaKeySession);
H A Ddrm-mediakeysystem-management.md139 let mediaKeySession: drm.MediaKeySession = mediaKeySystem.createMediaKeySession();
182 mediaKeySession.destroy();
/ohos5.0/docs/en/application-dev/media/drm/
H A Ddrm-mediakeysession-management.md28 mediaKeySession.on('keyRequired', (eventInfo: drm.EventInfo) => {
36 mediaKeySession.on('keyExpired', (eventInfo: drm.EventInfo) => {
44 mediaKeySession.on('vendorDefined', (eventInfo: drm.EventInfo) => {
52 mediaKeySession.on('expirationUpdate', (eventInfo: drm.EventInfo) => {
60 mediaKeySession.on('keysChange', (keyInfo : drm.KeysInfo[], newKeyAvailable:boolean) => {
81 mediaKeySession.processMediaKeyResponse(licenseResponse).then((mediaKeyId: Uint8Array) => {
95 mediaKeySession.processMediaKeyResponse(licenseResponse).then((mediaKeyId: Uint8Array) => {
110 let keyvalue: drm.MediaKeyStatus[] = mediaKeySession.checkMediaKeyStatus();
139 mediaKeySession.restoreOfflineMediaKeys(offlineMediaKeyId).then(() => {
161 let status: boolean = mediaKeySession.requireSecureDecoderModule("video/avc");
[all …]
H A Dnative-drm-mediakeysession-management.md55 …Drm_ErrCode ret = OH_MediaKeySession_SetMediaKeySessionCallback(mediaKeySession, &sessionCallback);
62 ret = OH_MediaKeySession_SetCallback(mediaKeySession, &sessionCallback);
83 ret = OH_MediaKeySession_GenerateMediaKeyRequest(mediaKeySession, &info, &mediaKeyRequest);
97 ret = OH_MediaKeySession_ProcessMediaKeyResponse(mediaKeySession, mediaKeyResponse,
108 ret = OH_MediaKeySession_CheckMediaKeyStatus(mediaKeySession, &mediaKeyStatus);
117 ret = OH_MediaKeySession_ClearMediaKeys(mediaKeySession);
128 ret = OH_MediaKeySession_GenerateOfflineReleaseRequest(mediaKeySession,
136 … ret = OH_MediaKeySession_ProcessOfflineReleaseResponse(mediaKeySession, mediaKeyId, mediaKeyIdLen,
147 ret = OH_MediaKeySession_RestoreOfflineMediaKeys(mediaKeySession, mediaKeyId, mediaKeyIdLen);
157 ret = OH_MediaKeySession_GetContentProtectionLevel(mediaKeySession,
[all …]
H A Dnative-drm-mediakeysystem-management.md90 MediaKeySession *mediaKeySession = nullptr;
92 …OH_MediaKeySystem_CreateMediaKeySession(mediaKeySystem, &contentProtectionLevel, &mediaKeySession);
93 if (ret != DRM_ERR_OK || mediaKeySession == nullptr) {
197 ret = OH_MediaKeySession_Destroy(mediaKeySession);
/ohos5.0/foundation/multimedia/drm_framework/frameworks/native/test/fuzztest/mediakeydecryptndk_fuzzer/
H A Dmediakeydecryptndk_fuzzer.cpp133 OH_MediaKeySession_GenerateMediaKeyRequest(mediaKeySession, &info, &mediaKeyRequest); in GenerateLicense()
145 …OH_MediaKeySession_ProcessMediaKeyResponse(mediaKeySession, keySessionResponse, keySessionResponse… in GenerateLicense()
178 …OH_MediaKeySystem_CreateMediaKeySession(mediaKeySystem, &ContentProtectionLevel, &mediaKeySession); in FuzzTestMediaKeyDecryptNdk()
180 if (mediaKeySession) { in FuzzTestMediaKeyDecryptNdk()
181 … MediaKeySessionObject *sessionObject = reinterpret_cast<MediaKeySessionObject *>(mediaKeySession); in FuzzTestMediaKeyDecryptNdk()
194 if (mediaKeySession != nullptr) { in FuzzTestMediaKeyDecryptNdk()
195 OH_MediaKeySession_Destroy(mediaKeySession); in FuzzTestMediaKeyDecryptNdk()
196 mediaKeySession = nullptr; in FuzzTestMediaKeyDecryptNdk()
H A Dmediakeydecryptndk_fuzzer.h43 MediaKeySession *mediaKeySession = nullptr; variable
/ohos5.0/docs/zh-cn/application-dev/reference/apis-drm-kit/
H A D_drm.md1140 | mediaKeySession | MediaKeySession实例。 |
1168 | mediaKeySession | MediaKeySession实例。 |
1194 | mediaKeySession | MediaKeySession实例。 |
1220 | mediaKeySession | MediaKeySession实例。 |
1249 | mediaKeySession | MediaKeySession实例。 |
1280 | mediaKeySession | MediaKeySession例。 |
1307 | mediaKeySession | MediaKeySession实例。 |
1338 | mediaKeySession | MediaKeySession实例。 |
1368 | mediaKeySession | MediaKeySession实例。 |
1396 | mediaKeySession | MediaKeySession实例。 |
[all …]
H A Djs-apis-drm.md1418 mediaKeySession.clearMediaKeys();
1573 mediaKeySession.restoreOfflineMediaKeys(mediaKeyId).then(() => {
1702 mediaKeySession.on('keyRequired', (eventInfo: drm.EventInfo) => {
1740 mediaKeySession.off('keyRequired');
1776 mediaKeySession.on('keyExpired', (eventInfo: drm.EventInfo) => {
1814 mediaKeySession.off('keyExpired');
1888 mediaKeySession.off('vendorDefined');
1962 mediaKeySession.off('expirationUpdate');
2038 mediaKeySession.off('keysChange');
2069 mediaKeySession.destroy();
[all …]
H A Dnative__mediakeysession_8h.md46 …neratemediakeyrequest) ([MediaKeySession](_drm.md#mediakeysession) \*mediaKeySession, [DRM_MediaKe…
47 …ocessmediakeyresponse) ([MediaKeySession](_drm.md#mediakeysession) \*mediaKeySession, uint8_t \*re…
/ohos5.0/foundation/multimedia/drm_framework/frameworks/native/test/fuzztest/mediakeysystemndk_fuzzer/
H A Dmediakeysystemndk_fuzzer.cpp138 OH_MediaKeySession_GenerateMediaKeyRequest(mediaKeySession, &info, &mediaKeyRequest); in GenerateLicense()
150 …OH_MediaKeySession_ProcessMediaKeyResponse(mediaKeySession, keySessionResponse, keySessionResponse… in GenerateLicense()
312 …OH_MediaKeySystem_CreateMediaKeySession(mediaKeySystem, &ContentProtectionLevel, &mediaKeySession); in FuzzTestMediaKeySystemLicenseOperationNdk()
329 if (mediaKeySession != nullptr) { in FuzzTestMediaKeySystemLicenseOperationNdk()
330 OH_MediaKeySession_Destroy(mediaKeySession); in FuzzTestMediaKeySystemLicenseOperationNdk()
331 mediaKeySession = nullptr; in FuzzTestMediaKeySystemLicenseOperationNdk()
H A Dmediakeysystemndk_fuzzer.h47 MediaKeySession *mediaKeySession = nullptr; variable
/ohos5.0/docs/en/application-dev/reference/apis-drm-kit/
H A Djs-apis-drm.md1356 mediaKeySession.clearMediaKeys();
1511 mediaKeySession.restoreOfflineMediaKeys(mediaKeyId).then(() => {
1640 mediaKeySession.on('keyRequired', (eventInfo: drm.EventInfo) => {
1678 mediaKeySession.off('keyRequired');
1714 mediaKeySession.on('keyExpired', (eventInfo: drm.EventInfo) => {
1752 mediaKeySession.off('keyExpired');
1826 mediaKeySession.off('vendorDefined');
1900 mediaKeySession.off('expirationUpdate');
1976 mediaKeySession.off('keysChange');
2007 mediaKeySession.destroy();
[all …]
H A D_drm.md1134 | mediaKeySession | Pointer to the **MediaKeySession** instance.|
1162 | mediaKeySession | Pointer to the **MediaKeySession** instance.|
1188 | mediaKeySession | Pointer to the **MediaKeySession** instance.|
1214 | mediaKeySession | Pointer to the **MediaKeySession** instance.|
1243 | mediaKeySession | Pointer to the **MediaKeySession** instance.|
1274 | mediaKeySession | Pointer to the **MediaKeySession** instance.|
1301 | mediaKeySession | Pointer to the **MediaKeySession** instance.|
1332 | mediaKeySession | Pointer to the **MediaKeySession** instance.|
1362 | mediaKeySession | Pointer to the **MediaKeySession** instance.|
1390 | mediaKeySession | Pointer to the **MediaKeySession** instance.|
[all …]
/ohos5.0/foundation/multimedia/drm_framework/frameworks/c/drm_capi/
H A Dnative_mediakeysession.cpp61 Drm_ErrCode OH_MediaKeySession_GenerateMediaKeyRequest(MediaKeySession *mediaKeySession, DRM_MediaK… in OH_MediaKeySession_GenerateMediaKeyRequest() argument
66 …DRM_CHECK_AND_RETURN_RET_LOG(((mediaKeySession != nullptr) && (info != nullptr) && (mediaKeyReques… in OH_MediaKeySession_GenerateMediaKeyRequest()
82 … MediaKeySessionObject *sessionObject = reinterpret_cast<MediaKeySessionObject *>(mediaKeySession); in OH_MediaKeySession_GenerateMediaKeyRequest()
92 Drm_ErrCode OH_MediaKeySession_ProcessMediaKeyResponse(MediaKeySession *mediaKeySession, uint8_t *r… in OH_MediaKeySession_ProcessMediaKeyResponse() argument
100 ((mediaKeySession != nullptr) && (response != nullptr) && (responseLen > 0) && in OH_MediaKeySession_ProcessMediaKeyResponse()
103 … MediaKeySessionObject *sessionObject = reinterpret_cast<MediaKeySessionObject *>(mediaKeySession); in OH_MediaKeySession_ProcessMediaKeyResponse()
/ohos5.0/foundation/multimedia/drm_framework/interfaces/kits/c/drm_capi/include/
H A Dnative_mediakeysession.h144 Drm_ErrCode OH_MediaKeySession_GenerateMediaKeyRequest(MediaKeySession *mediaKeySession,
161 Drm_ErrCode OH_MediaKeySession_ProcessMediaKeyResponse(MediaKeySession *mediaKeySession,
/ohos5.0/docs/zh-cn/application-dev/reference/apis-avcodec-kit/
H A D_audio_codec.md47 … ([OH_AVCodec](_codec_base.md#oh_avcodec) \*codec, MediaKeySession \*mediaKeySession, bool secureA…
346 OH_AVErrCode OH_AudioCodec_SetDecryptionConfig (OH_AVCodec *codec, MediaKeySession *mediaKeySession
360 | mediaKeySession | 带有解密功能的媒体秘钥会话实例。 |
H A D_video_decoder.md56 … ([OH_AVCodec](_codec_base.md#oh_avcodec) \*codec, MediaKeySession \*mediaKeySession, bool secureV…
565 …ideoDecoder_SetDecryptionConfig (OH_AVCodec *codec, MediaKeySession *mediaKeySession, bool secureV…
579 | mediaKeySession | 指向带有解密功能的DRM会话实例的指针,请参阅**MediaKeySession**。 |
597 2. mediaKeySession为nullptr或无效。
/ohos5.0/foundation/multimedia/av_codec/frameworks/native/capi/avcodec/
H A Dnative_audio_codec.cpp467 OH_AVErrCode OH_AudioCodec_SetDecryptionConfig(OH_AVCodec *codec, MediaKeySession *mediaKeySession, in OH_AudioCodec_SetDecryptionConfig() argument
479 reinterpret_cast<DrmStandard::MediaKeySessionObject *>(mediaKeySession); in OH_AudioCodec_SetDecryptionConfig()
498 OH_AVErrCode OH_AudioCodec_SetDecryptionConfig(OH_AVCodec *codec, MediaKeySession *mediaKeySession, in OH_AudioCodec_SetDecryptionConfig() argument
503 (void)mediaKeySession; in OH_AudioCodec_SetDecryptionConfig()
/ohos5.0/foundation/multimedia/av_codec/interfaces/kits/c/
H A Dnative_avcodec_audiocodec.h297 OH_AVErrCode OH_AudioCodec_SetDecryptionConfig(OH_AVCodec *codec, MediaKeySession *mediaKeySession,

123