mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2026-06-12 19:24:22 +08:00
@@ -2048,6 +2048,142 @@
|
||||
}
|
||||
},
|
||||
"response": []
|
||||
},
|
||||
{
|
||||
"name": "点播mp4文件(loadMP4File)",
|
||||
"request": {
|
||||
"method": "GET",
|
||||
"header": [],
|
||||
"url": {
|
||||
"raw": "{{ZLMediaKit_URL}}/index/api/loadMP4File?secret={{ZLMediaKit_secret}}&vhost={{defaultVhost}}&app=live&stream=test&file_path=/path/to/mp4/file.mp4",
|
||||
"host": [
|
||||
"{{ZLMediaKit_URL}}"
|
||||
],
|
||||
"path": [
|
||||
"index",
|
||||
"api",
|
||||
"loadMP4File"
|
||||
],
|
||||
"query": [
|
||||
{
|
||||
"key": "secret",
|
||||
"value": "{{ZLMediaKit_secret}}",
|
||||
"description": "api操作密钥(配置文件配置)"
|
||||
},
|
||||
{
|
||||
"key": "vhost",
|
||||
"value": "{{defaultVhost}}",
|
||||
"description": "添加的流的虚拟主机,例如__defaultVhost__"
|
||||
},
|
||||
{
|
||||
"key": "app",
|
||||
"value": "live",
|
||||
"description": "添加的流的应用名,例如live"
|
||||
},
|
||||
{
|
||||
"key": "stream",
|
||||
"value": "test",
|
||||
"description": "添加的流的id名,例如test"
|
||||
},
|
||||
{
|
||||
"key": "file_path",
|
||||
"value": "/path/to/mp4/file.mp4",
|
||||
"description": "mp4文件绝对路径"
|
||||
},
|
||||
{
|
||||
"key": "file_repeat",
|
||||
"value": "1",
|
||||
"description": "是否循环点播mp4文件,如果配置文件已经开启循环点播,此参数无效",
|
||||
"disabled": true
|
||||
},
|
||||
{
|
||||
"key": "enable_hls",
|
||||
"value": "",
|
||||
"description": "是否转hls-ts",
|
||||
"disabled": true
|
||||
},
|
||||
{
|
||||
"key": "enable_hls_fmp4",
|
||||
"value": "",
|
||||
"description": "是否转hls-fmp4",
|
||||
"disabled": true
|
||||
},
|
||||
{
|
||||
"key": "enable_mp4",
|
||||
"value": "",
|
||||
"description": "是否mp4录制,默认不开启(覆盖配置文件)",
|
||||
"disabled": true
|
||||
},
|
||||
{
|
||||
"key": "enable_rtsp",
|
||||
"value": "1",
|
||||
"description": "是否转协议为rtsp/webrtc",
|
||||
"disabled": true
|
||||
},
|
||||
{
|
||||
"key": "enable_rtmp",
|
||||
"value": "1",
|
||||
"description": "是否转协议为rtmp/flv",
|
||||
"disabled": true
|
||||
},
|
||||
{
|
||||
"key": "enable_ts",
|
||||
"value": "1",
|
||||
"description": "是否转协议为http-ts/ws-ts",
|
||||
"disabled": true
|
||||
},
|
||||
{
|
||||
"key": "enable_fmp4",
|
||||
"value": "1",
|
||||
"description": "是否转协议为http-fmp4/ws-fmp4",
|
||||
"disabled": true
|
||||
},
|
||||
{
|
||||
"key": "enable_audio",
|
||||
"value": "1",
|
||||
"description": "转协议是否开启音频",
|
||||
"disabled": true
|
||||
},
|
||||
{
|
||||
"key": "add_mute_audio",
|
||||
"value": "1",
|
||||
"description": "转协议无音频时,是否添加静音aac音频",
|
||||
"disabled": true
|
||||
},
|
||||
{
|
||||
"key": "mp4_save_path",
|
||||
"value": "",
|
||||
"description": "mp4录制保存根目录,置空使用默认目录",
|
||||
"disabled": true
|
||||
},
|
||||
{
|
||||
"key": "mp4_max_second",
|
||||
"value": "1800",
|
||||
"description": "mp4录制切片大小,单位秒",
|
||||
"disabled": true
|
||||
},
|
||||
{
|
||||
"key": "hls_save_path",
|
||||
"value": "",
|
||||
"description": "hls保存根目录,置空使用默认目录",
|
||||
"disabled": true
|
||||
},
|
||||
{
|
||||
"key": "modify_stamp",
|
||||
"value": "",
|
||||
"description": "是否修改原始时间戳,默认值2;取值范围:0.采用源视频流绝对时间戳,不做任何改变;1.采用zlmediakit接收数据时的系统时间戳(有平滑处理);2.采用源视频流时间戳相对时间戳(增长量),有做时间戳跳跃和回退矫正",
|
||||
"disabled": true
|
||||
},
|
||||
{
|
||||
"key": "auto_close",
|
||||
"value": "",
|
||||
"description": "无人观看时,是否直接关闭(而不是通过on_none_reader hook返回close);强制开启,此参数不生效",
|
||||
"disabled": true
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"response": []
|
||||
}
|
||||
],
|
||||
"event": [
|
||||
|
||||
Reference in New Issue
Block a user