/api/srt/receiver-info
Use the interface to obtain SRT RX information.
Request Mode
POST /api/srt/receiver-info
Response Body
{
"status": 0,
"srt": [
{
"uid": 1,
"enable": true,
"name": "srt_01",
"mode": 1,
"remote-ip": "",
"remote-port": 8000,
"bind-port": 8000,
"stream-id": "1",
"latency": 120,
"is-encrypted": false,
"passphrase": "",
"buffer-duration": 120,
"headroom-db": 0,
"format": {
"sample-rate": 0,
"channel-num": 0,
"bit-depth": 0
},
"report": {}
}
]
}
Name | Description |
---|---|
status | 0 indicates that the request was accepted successfully. Refer to API Status Codes. |
srt[i].uid | Unique ID, non-0 value. |
srt[i].enable | True: enable SRT. False: disable SRT. |
srt[i].name | SRT RX name. |
srt[i].mode | SRT mode. 0: caller 1: listener |
srt[i].remote-ip | Caller IP address. |
srt[i].remote-port | Caller port. |
srt[i].bind-port | Listener port. |
srt[i].stream-id | Stream ID |
srt[i].latency | Latency, in ms. |
srt[i].mtu | MTU within [0,1500]. |
srt[i].is-encrypted | True: encrypted; False: unencrypted. |
srt[i].passphrase | Passphrase |
srt[i].buffer-duration | Buffer time within [1,120], in ms. |
srt[i].headroom-db | Headroom, in decibels. |
srt[i].format.sample-rate | Sample rate. |
srt[i].format.channel-num | Number of channels. |
srt[i].format.bit-depth | Bit depth. |
srt[i].report | Running report. |