V3 Get Firmware Song Names and Folders
Menu: getSupportGetBleMusicInfoVerV3
Flutter Example:
/// Event number for getting the firmware song names and folders
getBleMusicInfo(
evtBase: _VBusEvtBase.base_app_get,
evtType: _VBusEvtType.func_v3_get_ble_music_info),
/// Get the firmware song names and folders
libManager.send(evt: CmdEvtType.getBleMusicInfo, json: jsonEncode(json));
JSON fields received by the app:
Field Name | Field Type | Field Description |
---|---|---|
version | int | Protocol library version Reserved |
all_memory | int | Firmware SDK card information Total space Uint:Byte |
useful_memory | int | Firmware SDK card information Available space Uint:Byte |
used_memory | int | Firmware SDK card information Current used space in bytes Uint:Byte |
folder_num | int | Number of folder details (playlists) |
music_num | int | Number of music details |
folder_items | set | Folder details (playlists) folder_id & music_num & folder_name & music_index set |
music_items | set | Music details music_id & music_memory & music_name & singer_name set |
Field Name | Field Type | Field Description |
---|---|---|
folder_id | int | Playlist (folder) id 1~10 |
music_num | int | Number of songs in the playlist, up to 100 |
folder_name | char [] | Playlist (folder) name, up to 19 bytes |
music_index | int [] | Ids of the songs in the playlist, listed in the order they were added |
Field Name | Field Type | Field Description |
---|---|---|
music_id | int | Song ID, starting from 1 |
music_memory | int | Space occupied by the song Uint:Byte |
music_name | char [] | Song name, up to 44 bytes |
singer_name | char [] | Singer name, up to 29 bytes |
Example:
{
"all_memory" : 209715200,
"folder_items" : null,
"folder_num" : 0,
"music_items" :
[
{
"music_id" : 1,
"music_memory" : 50078,
"music_name" : "jog for.mp3",
"singer_name" : "jog for"
}
],
"music_num" : 1,
"used_memory" : 50078,
"useful_memory" : 209665122,
"version" : 16
}