mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2026-06-13 03:31:45 +08:00
flv录制添加参数vhost
This commit is contained in:
@@ -39,11 +39,11 @@ API_EXPORT void API_CALL mk_flv_recorder_release(mk_flv_recorder 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){
|
||||
assert(ctx && app && stream && file_path);
|
||||
API_EXPORT int API_CALL mk_flv_recorder_start(mk_flv_recorder ctx, const char *vhost, const char *app, const char *stream, const char *file_path){
|
||||
assert(ctx && vhost && app && stream && file_path);
|
||||
try {
|
||||
FlvRecorder::Ptr *record = (FlvRecorder::Ptr *)(ctx);
|
||||
(*record)->startRecord(EventPollerPool::Instance().getPoller(), DEFAULT_VHOST,app,stream,file_path);
|
||||
(*record)->startRecord(EventPollerPool::Instance().getPoller(),vhost,app,stream,file_path);
|
||||
return 0;
|
||||
}catch (std::exception &ex){
|
||||
WarnL << ex.what();
|
||||
|
||||
Reference in New Issue
Block a user