Home / Docs Center / GB28181 API Reference / PlaybackVideos
PlaybackVideos
Project: GB28181 API Documentation | page_id: 172
Brief Description
- Video live streaming, playback and download
Request URL
/api/gb28181/invite
Request Method
- POST
Parameters
| Parameter | Required | Type | Description |
|---|---|---|---|
| id | Yes | string | Device number |
| channel | Yes | int | Channel number index (starting from 0) |
| f | No | string | v/encoding format/resolution/frame rate/bitrate type/bitrate size a/encoding format/bitrate size/sampling rate |
| s | No | string | Play (live), Playback (playback), Download (download) |
| startTime | No | int64 | Start time for playback or download (in seconds) |
| endTime | No | int64 | End time for playback or download (in seconds) |
Response Example
{
"code": 0,
"msg": "",
}
Response Parameter Description
| Parameter | Type | Description |
|---|---|---|
| code | int | Status code, >0 means error |
| msg | int | Error message |
Notes
- For recording download, you need to call the http-flv playback API and store the FLV video yourself.
- The live path is: 【device number/channel number】
Live streaming supports on-demand streaming, i.e. playing the video address directly implements automatic streaming and playback.
For example: http://192.168.0.190:10081/hdl/43000000801320000045/43000000801320000046.flv - The recording path is: 【channel number/start timestamp】
For example: http://192.168.0.190:10081/hdl/43000000801320000046/1611642610.flv - The recording download path is: 【channel number/device number-channel number-start timestamp】
For example: http://192.168.0.190:10081/hdl/43000000801320000046/43000000801320000045-43000000801320000046-1611642610.flv
Didn't find what you need?Contact us,Talk to our engineers directly.