流详情
开发中
GET
/api/stream/info/{streamPath}
请求参数
Path 参数
streamPath
string
必需
示例代码
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://localhost:8080/api/stream/info/'
返回响应
🟢200成功
application/json
Body
code
integer
必需
message
string
必需
data
object
必需
path
string
必需
state
enum<integer>
必需
枚举值:
01234
subscribers
integer
必需
audioTrack
object
必需
videoTrack
object
必需
startTime
string
必需
pluginName
string
必需
type
string
必需
meta
string
必需
isPaused
boolean
必需
gop
integer
必需
speed
integer
必需
bufferTime
string
必需
stopOnIdle
boolean
必需
示例
{
"code": 0,
"message": "string",
"data": {
"path": "string",
"state": 0,
"subscribers": 0,
"audioTrack": {
"codec": "string",
"delta": "string",
"meta": "string",
"bps": 0,
"fps": 0,
"sampleRate": 0,
"channels": 0
},
"videoTrack": {
"codec": "string",
"delta": "string",
"meta": "string",
"bps": 0,
"fps": 0,
"width": 0,
"height": 0,
"gop": 0
},
"startTime": "string",
"pluginName": "string",
"type": "string",
"meta": "string",
"isPaused": true,
"gop": 0,
"speed": 0,
"bufferTime": "string",
"stopOnIdle": true
}
}
修改于 2024-11-07 11:55:16