Home / Docs Center / GB28181 API Reference / Playback Control
Playback Control
Project: GB28181 API Documentation | page_id: 174
Brief Description
- Recording playback control: scale, seek, pause, teardown
Request URL
/api/gb28181/play
Request Method
- POST
Parameters
| Parameter | Required | Type | Description |
|---|---|---|---|
| id | Yes | string | Device number |
| channel | Yes | int | Device channel number index |
| cmd | Yes | string | Command |
| value | No | string | Command value |
| name | Yes | string | Playback path name 【channel number/start timestamp】 |
Response Example
{
"code": 0,
"msg": "",
}
Response Parameter Description
| Parameter | Type | Description |
|---|---|---|
| code | int | Error code, >0 means failure |
| msg | string | Error message |
Notes
- cmd has the following values
-- scale: fast forward, slow playback value: 0.25, 0.5, 1, 2, 4
-- seek: random seek, in seconds value: -1, 0-end seconds (-1 plays from the current position. 0 plays from the beginning, 100 plays from 100 seconds)
-- pause: pause streaming (use with caution; it must be used together with playback to prevent the device from freezing)
-- teardown: stop streaming
Didn't find what you need?Contact us,Talk to our engineers directly.