Set video playback progress in current scene
1. API Description
This API is used to set the video playback progress in the current scene.
Request mode:
- V2.6.0 and above: POST [ip]/mwapi/V2.0/scene/seek-video-player
- V2.5.0 and below: POST [ip]/mwapi/seek-video-player
| Administrator Rights | Logged-in |
|---|---|
| No | Yes |
2. Input Parameters
| Name | Required | Type | Description |
|---|---|---|---|
| layerId | Yes | Int | Layer ID, the layer position in the layer array |
| progress | Yes | Int | Playback progress, ranging from 0 to 1000000 |
3. Output Parameters
| Name | Type | Description |
|---|---|---|
| status | Int | Status code |
| message | String | Status description |
4. Example
Setting video playback progress to 0.
Input Example
{
"layerId": 1,
"progress": 0
}
Output Example
{
"message": "success",
"status": 0
}
5. Error Code
The following only lists the error codes related to the API business logic. For other error codes, see Common Error Codes.
| Status | Definition | Description |
|---|---|---|
| 7 | MW_STATUS_INVALID_ARG | Missing required parameters |