添加mk_media_set_on_seek接口

This commit is contained in:
xiongziliang 2020-04-02 10:31:33 +08:00
parent 194168f9c2
commit 205c894eb0

View File

@ -148,6 +148,22 @@ typedef void(API_CALL *on_mk_media_close)(void *user_data);
*/
API_EXPORT void API_CALL mk_media_set_on_close(mk_media ctx, on_mk_media_close cb, void *user_data);
/**
* seek请求时触发该回调
* @param user_data ,mk_media_set_on_seek设置
* @param stamp_ms seek至的时间轴位置
* @return 1seek请求0
*/
typedef int(API_CALL *on_mk_media_seek)(void *user_data,uint32_t stamp_ms);
/**
* seek请求事件
* @param ctx
* @param cb
* @param user_data
*/
API_EXPORT void API_CALL mk_media_set_on_seek(mk_media ctx, on_mk_media_seek cb, void *user_data);
/**
*
* @param ctx