feat: add mk_load_mp4_file c api(#3964)

Co-authored-by: lidaofu <lidf@ahtelit.com>
Co-authored-by: xia-chu <771730766@qq.com>
This commit is contained in:
Lidaofu
2024-10-18 21:48:42 +08:00
committed by GitHub
parent 61a93fab6a
commit fdbf77d46d
2 changed files with 47 additions and 0 deletions

View File

@@ -12,6 +12,7 @@
#define MK_RECORDER_API_H_
#include "mk_common.h"
#include "mk_util.h"
#ifdef __cplusplus
extern "C" {
@@ -124,6 +125,18 @@ API_EXPORT int API_CALL mk_recorder_start(int type, const char *vhost, const cha
*/
API_EXPORT int API_CALL mk_recorder_stop(int type, const char *vhost, const char *app, const char *stream);
/**
* 加载mp4列表
* @param vhost 虚拟主机
* @param app app
* @param stream 流id
* @param file_path 文件路径
* @param file_repeat 循环解复用
* @param ini 配置
*/
API_EXPORT void API_CALL mk_load_mp4_file(const char *vhost, const char *app, const char *stream, const char *file_path, int file_repeat);
API_EXPORT void API_CALL mk_load_mp4_file2(const char *vhost, const char *app, const char *stream, const char *file_path, int file_repeat, mk_ini ini);
#ifdef __cplusplus
}
#endif