mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2026-06-26 03:42:21 +08:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user