update multimedia/player_framework/avplayer.h.

Signed-off-by: baoxy92 <baoxianyue@hisilicon.com>
This commit is contained in:
baoxy92 2024-04-23 10:04:13 +00:00 committed by Gitee
parent 7abdc20a6a
commit c1ef67e5fa
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -48,6 +48,29 @@
extern "C" {
#endif
/**
* @brief MediaKeySession field.
* @since 12
* @version 1.0
*/
typedef struct MediaKeySession MediaKeySession;
/**
* @brief DRM_MediaKeySystemInfo field.
* @since 12
* @version 1.0
*/
typedef struct DRM_MediaKeySystemInfo DRM_MediaKeySystemInfo;
/**
* @brief Call back will be invoked when updating DRM information.
* @param player Player instance.
* @param mediaKeySystemInfo DRM information.
* @return DRM_ERR_INVALID_VAL when the params checked failure, return DRM_ERR_OK when function called successfully.
* @since 12
* @version 1.0
*/
typedef void (*Player_MediaKeySystemInfoCallback)(OH_AVPlayer *player, DRM_MediaKeySystemInfo* mediaKeySystemInfo);
/**
* @brief Create a player
* @syscap SystemCapability.Multimedia.Media.AVPlayer