添加hls/mp4录制相关接口

This commit is contained in:
xiongziliang 2019-12-24 16:20:39 +08:00
parent aa03d7d0bb
commit 7b3527e7f5
2 changed files with 8 additions and 8 deletions

View File

@ -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
}

View File

@ -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();
}