查询流媒体列表
开发中
GET
/media_servers
请求参数
无
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request GET 'http://test-cn.your-api-server.com/media_servers'
返回响应
🟢200成功
application/json
Body
items
array [object {21}]
必需
id
string
可选
ip
string
可选
created_at
string
可选
updated_at
string
可选
hook_ip
string
可选
sdpip
string
可选
stream_ip
string
可选
ports
object
可选
auto_config
boolean
可选
secret
string
可选
hook_alive_interval
integer
可选
rtpenable
boolean
可选
status
boolean
可选
rtpport_range
string
可选
send_rtpport_range
string
可选
record_assist_port
integer
可选
last_keepalive_at
string
可选
record_day
integer
可选
record_path
string
可选
type
string
可选
transcode_suffix
string
可选
total
integer
必需
示例
{
"items": [
{
"id": "local",
"ip": "127.0.0.1",
"created_at": "2025-03-09 10:30:16",
"updated_at": "2025-03-16 22:54:20",
"hook_ip": "192.168.1.10",
"sdpip": "192.168.1.10",
"stream_ip": "",
"ports": {
"http": 8080,
"https": 443,
"rtmp": 1935,
"flv": 8080,
"flvs": 443,
"ws_flv": 8080,
"ws_flvs": 443,
"rtmps": 0,
"rtpporxy": 10001,
"rtsp": 554,
"rtsps": 0
},
"auto_config": false,
"secret": "",
"hook_alive_interval": 10,
"rtpenable": false,
"status": false,
"rtpport_range": "20000-20500",
"send_rtpport_range": "",
"record_assist_port": 0,
"last_keepalive_at": "2025-03-09 10:30:16",
"record_day": 0,
"record_path": "",
"type": "zlm",
"transcode_suffix": ""
}
],
"total": 1
}
修改于 2025-03-16 14:54:11