更新拉流代理
开发中
POST
/api/proxy/pull/update
请求参数
Body 参数application/json
ID
integer
可选
createTime
string
可选
updateTime
string
可选
parentID
integer
可选
name
string
必需
type
string
可选
status
enum<integer>
可选
枚举值:
0123
pullURL
string
必需
pullOnStart
boolean
false 则按需拉流
stopOnIdle
boolean
无人订阅时关闭流
audio
boolean
是否启用音频
description
string
可选
recordPath
string
录制文件路径,为空则不录制
recordFragment
string
可选
streamPath
string
可选
rtt
number
可选
示例
{
"ID": 1,
"name": "test",
"type": 1,
"pullURL": "rtsp://localhost/live/test"
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'http://localhost:8080/api/proxy/pull/update' \
--header 'Content-Type: application/json' \
--data-raw '{
"ID": 1,
"name": "test",
"type": 1,
"pullURL": "rtsp://localhost/live/test"
}'
返回响应
🟢200成功
application/json
Body
object {0}
示例
{}
修改于 2024-12-04 06:03:19