mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2024-11-24 11:40:37 +08:00
feat: C Api增加loadMP4File功能
This commit is contained in:
parent
cb4709e60c
commit
683d5fb029
@ -125,9 +125,6 @@ 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);
|
API_EXPORT int API_CALL mk_recorder_stop(int type, const char *vhost, const char *app, const char *stream);
|
||||||
|
|
||||||
|
|
||||||
#if ENABLE_MP4
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 加载mp4列表
|
* 加载mp4列表
|
||||||
* @param vhost 虚拟主机
|
* @param vhost 虚拟主机
|
||||||
@ -137,10 +134,8 @@ API_EXPORT int API_CALL mk_recorder_stop(int type, const char *vhost, const char
|
|||||||
* @param file_repeat 循环解复用
|
* @param file_repeat 循环解复用
|
||||||
* @param ini 配置
|
* @param ini 配置
|
||||||
*/
|
*/
|
||||||
API_EXPORT void API_CALL mk_player_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_file(const char *vhost, const char *app, const char *stream, const char *file_path, int file_repeat);
|
||||||
API_EXPORT void API_CALL mk_player_load_mp4_file2(const char *vhost, const char *app, const char *stream, const char *file_path, int file_repeat, mk_ini ini);
|
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);
|
||||||
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
|
@ -87,7 +87,7 @@ API_EXPORT int API_CALL mk_recorder_stop(int type, const char *vhost, const char
|
|||||||
|
|
||||||
#if ENABLE_MP4
|
#if ENABLE_MP4
|
||||||
|
|
||||||
API_EXPORT void API_CALL mk_player_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_file(const char *vhost, const char *app, const char *stream, const char *file_path, int file_repeat) {
|
||||||
assert(vhost && app && stream && file_path);
|
assert(vhost && app && stream && file_path);
|
||||||
ProtocolOption option;
|
ProtocolOption option;
|
||||||
// mp4支持多track [AUTO-TRANSLATED:b9688762]
|
// mp4支持多track [AUTO-TRANSLATED:b9688762]
|
||||||
@ -110,7 +110,7 @@ API_EXPORT void API_CALL mk_player_load_mp4_file(const char *vhost, const char *
|
|||||||
reader->startReadMP4(0, true, file_repeat);
|
reader->startReadMP4(0, true, file_repeat);
|
||||||
}
|
}
|
||||||
|
|
||||||
API_EXPORT void API_CALL mk_player_load_mp4_file2(const char *vhost, const char *app, const char *stream, const char *file_path, int file_repeat, mk_ini ini) {
|
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) {
|
||||||
assert(vhost && app && stream && file_path);
|
assert(vhost && app && stream && file_path);
|
||||||
ProtocolOption option(*((mINI *)ini));
|
ProtocolOption option(*((mINI *)ini));
|
||||||
// mp4支持多track [AUTO-TRANSLATED:b9688762]
|
// mp4支持多track [AUTO-TRANSLATED:b9688762]
|
||||||
|
Loading…
Reference in New Issue
Block a user