Get video playback status
1. API Description
This API is used to get the video playback status in the current presenting scene.
Request mode:
- V2.6.0 and above: POST [ip]/mwapi/V2.0/scene/get-video-player-status
- V2.5.0 and below: POST [ip]/mwapi/get-video-player-status
Administrator Rights | Logged-in |
---|---|
No | Yes |
2. Input Parameters
None
3. Output Parameters
Name | Type | Description |
---|---|---|
status | Int | Status code |
info | InfoData | Video playback status |
InfoData
Name | Type | Description |
---|---|---|
layerId | Int | Layer ID, the layer position in the layer array |
sourceId | Int | Resource ID |
playStatus | Int | Playback status 0: Pause; 1: Play |
progress | Int | Playback progress, ranging from 0 to 1000000 |
sourceDuration | Int | Video duration, in ms |
4. Example
Getting the video playback status.
Input Example
None
Output Example
{
"status":0,
"info":[
{
"layerId":1,
"playStatus":1,
"progress":16664,
"sourceDuration":120000,
"sourceId":101
}
]
}
5. Error Code
No error code related to the API business logic. For other error codes, see Common Error Codes.