bgm

When the BGM list or play state on the device changes or it receives the Request for state synchronization, Director Mini device sends the data of BGM list to the receiver.

For how to configure the receiver, please refer to How to use TouchOSC to control Director Mini.

Address

/status/bgm [json string]

Arguments

Type Description
argument 1 String The data of BGM list

Example

After receiving Request for state synchronization, Director Mini device sends the data of BGM list to the receiver.

/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 ""