feat: C Api增加loadMP4File功能

This commit is contained in:
lidaofu 2024-10-18 15:38:28 +08:00
parent cb4709e60c
commit 683d5fb029
2 changed files with 4 additions and 9 deletions

View File

@ -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);
#if ENABLE_MP4
/**
* mp4列表
* @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 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_player_load_mp4_file2(const char *vhost, const char *app, const char *stream, const char *file_path, int file_repeat, mk_ini ini);
#endif
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
}

View File

@ -87,7 +87,7 @@ API_EXPORT int API_CALL mk_recorder_stop(int type, const char *vhost, const char
#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);
ProtocolOption option;
// 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);
}
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);
ProtocolOption option(*((mINI *)ini));
// mp4支持多track [AUTO-TRANSLATED:b9688762]