mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2026-06-13 11:41:44 +08:00
添加pusher接口
整理代码
This commit is contained in:
@@ -34,13 +34,14 @@ API_EXPORT mk_flv_recorder API_CALL mk_flv_recorder_create(){
|
||||
return ret;
|
||||
}
|
||||
API_EXPORT void API_CALL mk_flv_recorder_release(mk_flv_recorder ctx){
|
||||
assert(ctx);
|
||||
FlvRecorder::Ptr *record = (FlvRecorder::Ptr *)(ctx);
|
||||
delete record;
|
||||
}
|
||||
API_EXPORT int API_CALL mk_flv_recorder_start(mk_flv_recorder ctx, const char *app, const char *stream, const char *file_path){
|
||||
DebugL << app << " " << stream << " " << file_path;
|
||||
FlvRecorder::Ptr *record = (FlvRecorder::Ptr *)(ctx);
|
||||
assert(ctx && app && stream && file_path);
|
||||
try {
|
||||
FlvRecorder::Ptr *record = (FlvRecorder::Ptr *)(ctx);
|
||||
(*record)->startRecord(EventPollerPool::Instance().getPoller(), DEFAULT_VHOST,app,stream,file_path);
|
||||
return 0;
|
||||
}catch (std::exception &ex){
|
||||
|
||||
Reference in New Issue
Block a user