From 7b3527e7f5a5a5e2410372b5fe65b08ba8835141 Mon Sep 17 00:00:00 2001 From: xiongziliang <771730766@qq.com> Date: Tue, 24 Dec 2019 16:20:39 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0hls/mp4=E5=BD=95=E5=88=B6?= =?UTF-8?q?=E7=9B=B8=E5=85=B3=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/include/recorder.h | 8 ++++---- api/source/recorder.cpp | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/api/include/recorder.h b/api/include/recorder.h index de697872..33c05949 100644 --- a/api/include/recorder.h +++ b/api/include/recorder.h @@ -70,7 +70,7 @@ API_EXPORT int API_CALL mk_flv_recorder_start(mk_flv_recorder ctx, const char *a * @param stream 流id * @return 录制状态,0:未录制,1:等待MediaSource注册,注册成功后立即开始录制,2:MediaSource已注册,并且正在录制 */ -API_EXPORT int mk_recorder_status(int type, const char *vhost, const char *app, const char *stream); +API_EXPORT int API_CALL mk_recorder_status(int type, const char *vhost, const char *app, const char *stream); /** * 开始录制 @@ -82,7 +82,7 @@ API_EXPORT int mk_recorder_status(int type, const char *vhost, const char *app, * @param continue_record 流注销时是否继续等待录制还是立即停止录制 * @return 0代表成功,负数代表失败 */ -API_EXPORT int mk_recorder_start(int type, const char *vhost, const char *app, const char *stream,bool wait_for_record, bool continue_record); +API_EXPORT int API_CALL mk_recorder_start(int type, const char *vhost, const char *app, const char *stream,bool wait_for_record, bool continue_record); /** * 停止录制 @@ -92,12 +92,12 @@ API_EXPORT int mk_recorder_start(int type, const char *vhost, const char *app, c * @param stream 流id * @return 1:成功,0:失败 */ -API_EXPORT int 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); /** * 停止所有录制,一般程序退出时调用 */ -API_EXPORT void mk_recorder_stop_all(); +API_EXPORT void API_CALL mk_recorder_stop_all(); #ifdef __cplusplus } diff --git a/api/source/recorder.cpp b/api/source/recorder.cpp index 04030d37..4763faa3 100644 --- a/api/source/recorder.cpp +++ b/api/source/recorder.cpp @@ -52,21 +52,21 @@ API_EXPORT int API_CALL mk_flv_recorder_start(mk_flv_recorder ctx, const char *a } ///////////////////////////////////////////hls/mp4录制///////////////////////////////////////////// -API_EXPORT int mk_recorder_status(int type, const char *vhost, const char *app, const char *stream){ +API_EXPORT int API_CALL mk_recorder_status(int type, const char *vhost, const char *app, const char *stream){ assert(vhost && app && stream); return Recorder::getRecordStatus((Recorder::type)type,vhost,app,stream); } -API_EXPORT int mk_recorder_start(int type, const char *vhost, const char *app, const char *stream,bool wait_for_record, bool continue_record){ +API_EXPORT int API_CALL mk_recorder_start(int type, const char *vhost, const char *app, const char *stream,bool wait_for_record, bool continue_record){ assert(vhost && app && stream); return Recorder::startRecord((Recorder::type)type,vhost,app,stream,wait_for_record,continue_record); } -API_EXPORT int 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){ assert(vhost && app && stream); return Recorder::stopRecord((Recorder::type)type,vhost,app,stream); } -API_EXPORT void mk_recorder_stop_all(){ +API_EXPORT void API_CALL mk_recorder_stop_all(){ Recorder::stopAll(); } \ No newline at end of file