- global
- rtmp
- gb28181
- monitor
- mp4
- transcode
- debug
- stress
- cluster
- test
添加拉流代理
开发中
POST
/api/proxy/pull/add
请求参数
Body 参数application/json
ID
integer
可选
parentID
integer
可选
name
string
必需
type
string
可选
pullURL
string
必需
pullOnStart
boolean
false 则按需拉流
stopOnIdle
boolean
无人订阅时关闭流
audio
boolean
是否启用音频
description
string
可选
recordPath
string
录制文件路径,为空则不录制
recordFragment
string
可选
streamPath
string
可选
示例
{
"parentID": 0,
"name": "b063",
"type": "flv",
"streamPath": "live/wdly/b063",
"recordPath": "record/wdly/b063",
"pullOnStart": true,
"recordFragment": "1800s",
"pullURL": "http://pull-flv-l13.douyincdn.com/stage/stream-116178996425654712_or4.flv?expire=1731809658&sign=aa32b81a40ae012c43d059b22526a4ca&major_anchor_level=common"
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST '/api/proxy/pull/add' \
--header 'Content-Type: application/json' \
--data-raw '{
"parentID": 0,
"name": "b063",
"type": "flv",
"streamPath": "live/wdly/b063",
"recordPath": "record/wdly/b063",
"pullOnStart": true,
"recordFragment": "1800s",
"pullURL": "http://pull-flv-l13.douyincdn.com/stage/stream-116178996425654712_or4.flv?expire=1731809658&sign=aa32b81a40ae012c43d059b22526a4ca&major_anchor_level=common"
}'
返回响应
🟢200成功
application/json
Body
object {0}
示例
{}

扫码关注公众号"不卡科技"
包含最佳实践、技术原理、最新活动



扫码加入不卡科技QQ 群

