Control BGM playback
1. API Description
This API is used to control BGM playback.
Request mode:
- V2.6.0 and above: POST [ip]/mwapi/V2.0/bgm/bgm-play-control
- V2.5.0 and below: POST [ip]/mwapi/bgm-play-control
Administrator Rights | Logged-in |
---|---|
No | Yes |
2. Input Parameters
Name | Required | Type | Description |
---|---|---|---|
playStatus | Yes | Int | Playback status 0: Pause; 1: Play |
3. Output Parameters
Name | Type | Description |
---|---|---|
status | Int | Status code |
message | String | Status description |
4. Example
Pausing BGM.
Input Example
{
"playStatus":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 |