bgm

Director Mini device sends the data of BGM list, which is triggered upon the BGM list or play state changes on the device or it receives the "/status/sync" request.

Address

/status/bgm [json string]

Arguments

Type Description
argument 1 String The data of BGM list

Example

Director Mini device sends the data of BGM list.

/status/bgm {"bgmList":[{"name":"Music 01","duration":"03:51","isCurrent":false},{"name":"Music 02","duration":"03:32","isCurrent":true}],"isPlaying":true,"policy":0,"duration":212,"progress":0.029510999098420143}
Name Type Description
isPlaying Boolean Whether it is playing
policy Int Playback policy.
0: Repeat the list
1: Repeat a single song
2: Shuffle the list
duration Int The duration of current playing audio, in second
progress Float The playback progress
bgmList List The BGM list

bgmlist

Name Type Description
name String Song name
isCurrent Whether the music is currently playing. true: Yes, false: No
duration String The duration of the music file, e.g. 03:00

results matching ""

    No results matching ""