mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2024-11-26 12:37:09 +08:00
getMp4RecordFile接口可使用自定义的录像保存根目录来搜索文件
This commit is contained in:
parent
a0de7577fe
commit
d3b37b76bd
@ -900,7 +900,7 @@
|
|||||||
"method": "GET",
|
"method": "GET",
|
||||||
"header": [],
|
"header": [],
|
||||||
"url": {
|
"url": {
|
||||||
"raw": "{{ZLMediaKit_URL}}/index/api/getMp4RecordFile?secret={{ZLMediaKit_secret}}&vhost={{defaultVhost}}&app=proxy&stream=2&period=2020-05-26",
|
"raw": "{{ZLMediaKit_URL}}/index/api/getMp4RecordFile?secret={{ZLMediaKit_secret}}&vhost={{defaultVhost}}&app=proxy&stream=2&customized_path=/www&period=2020-05-26",
|
||||||
"host": [
|
"host": [
|
||||||
"{{ZLMediaKit_URL}}"
|
"{{ZLMediaKit_URL}}"
|
||||||
],
|
],
|
||||||
@ -930,6 +930,11 @@
|
|||||||
"value": "2",
|
"value": "2",
|
||||||
"description": "流id,例如 test"
|
"description": "流id,例如 test"
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"key": "customized_path",
|
||||||
|
"value": "/www",
|
||||||
|
"description": "录像文件保存自定义根目录,为空则采用配置文件设置"
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"key": "period",
|
"key": "period",
|
||||||
"value": "2020-05-26",
|
"value": "2020-05-26",
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 2016 The ZLMediaKit project authors. All Rights Reserved.
|
* Copyright (c) 2016 The ZLMediaKit project authors. All Rights Reserved.
|
||||||
*
|
*
|
||||||
* This file is part of ZLMediaKit(https://github.com/xia-chu/ZLMediaKit).
|
* This file is part of ZLMediaKit(https://github.com/xia-chu/ZLMediaKit).
|
||||||
@ -1334,7 +1334,7 @@ void installWebApi() {
|
|||||||
api_regist("/index/api/getMp4RecordFile", [](API_ARGS_MAP){
|
api_regist("/index/api/getMp4RecordFile", [](API_ARGS_MAP){
|
||||||
CHECK_SECRET();
|
CHECK_SECRET();
|
||||||
CHECK_ARGS("vhost", "app", "stream");
|
CHECK_ARGS("vhost", "app", "stream");
|
||||||
auto record_path = Recorder::getRecordPath(Recorder::type_mp4, allArgs["vhost"], allArgs["app"],allArgs["stream"]);
|
auto record_path = Recorder::getRecordPath(Recorder::type_mp4, allArgs["vhost"], allArgs["app"], allArgs["stream"], allArgs["customized_path"]);
|
||||||
auto period = allArgs["period"];
|
auto period = allArgs["period"];
|
||||||
|
|
||||||
//判断是获取mp4文件列表还是获取文件夹列表
|
//判断是获取mp4文件列表还是获取文件夹列表
|
||||||
|
Loading…
Reference in New Issue
Block a user