get-bgm-status

Use the interface to get the play status of BGM.

Request Mode

 POST http://ip/mwapi/get-bgm-status

Response Body

JSON structure is as follows:

{
    "info": {},
    "message": "success",
    "result": 0
}
1. Response Status
"result": 0
Name Description
result Same as status. 0 indicates a successful data acquisition. Refer to API Status Codes to find specific description for other values.
musicStatus The status of BGM
2. Current Status
"musicStatus": {
            "currentMusicId": 2038,
            "duration": 194000,
            "policy": 2,
            "progress": 500000,
            "status": 0
        }
Name Description
currentMusicId The ID of current BGM
duration The duration of audio, in ms
Status The play status
policy The play policy
progress The play progress (0 - 1000000)

results matching ""

    No results matching ""