Hi Jan,
I was able to call the browse API using output_id as found in the zone list
{
"zones": {
"1601bb8da41024fe80da0656c27e7c387091": {
"zone_id": "1601bb8da41024fe80da0656c27e7c387091",
"display_name": "AN Dac 2.1x Sig",
"outputs": [
{
"output_id": "1701bb8da41024fe80da0656c27e7c387091",
"zone_id": "1601bb8da41024fe80da0656c27e7c387091",
"can_group_with_output_ids": [
"1701bb8da41024fe80da0656c27e7c387091",
"17012b227d3698b7fa1caa37237f27fc6f18"
],
"display_name": "AN Dac 2.1x Sig"
}
],
}
}
}
Then calling the browse with the output_id gives me the following:
returns the following:
{
level: 1,
title: 'Library',
subtitle: null,
image_key: null,
count: 5,
display_offset: null
}
Then calling the load api gives me the following:
{
"list": [
{
"title": "Search",
"subtitle": null,
"image_key": null,
"item_key": "115:0",
"input_prompt": {
"prompt": "Search",
"action": "Go"
},
"url_link": "http://localhost:3001/roonAPI/listByItemKey?zoneId=1701bb8da41024fe80da0656c27e7c387091&item_key=115:0"
},
{
"title": "Artists",
"subtitle": null,
"image_key": null,
"item_key": "115:1",
"url_link": "http://localhost:3001/roonAPI/listByItemKey?zoneId=1701bb8da41024fe80da0656c27e7c387091&item_key=115:1"
},
{
"title": "Albums",
"subtitle": null,
"image_key": null,
"item_key": "115:2",
"url_link": "http://localhost:3001/roonAPI/listByItemKey?zoneId=1701bb8da41024fe80da0656c27e7c387091&item_key=115:2"
},
{
"title": "Tracks",
"subtitle": null,
"image_key": null,
"item_key": "115:3",
"url_link": "http://localhost:3001/roonAPI/listByItemKey?zoneId=1701bb8da41024fe80da0656c27e7c387091&item_key=115:3"
},
{
"title": "Composers",
"subtitle": null,
"image_key": null,
"item_key": "115:4",
"url_link": "http://localhost:3001/roonAPI/listByItemKey?zoneId=1701bb8da41024fe80da0656c27e7c387091&item_key=115:4"
}
]
}
I also have a question on the changing the item_keys for every refresh, I created an html api for these APIs and if there are more than one client calling these apis, then it will not work as the item_keys will have been updated.
here’s the result of both browse and load calls after I refresh from the same link
{
"list": [
{
"title": "Search",
"subtitle": null,
"image_key": null,
"item_key": "115:0",
"input_prompt": {
"prompt": "Search",
"action": "Go"
},
"url_link": "http://localhost:3001/roonAPI/listByItemKey?zoneId=1701bb8da41024fe80da0656c27e7c387091&item_key=115:0"
},
Then after i hit refresh
{
"list": [
{
"title": "Search",
"subtitle": null,
"image_key": null,
"item_key": "116:0",
"input_prompt": {
"prompt": "Search",
"action": "Go"
},
"url_link": "http://localhost:3001/roonAPI/listByItemKey?zoneId=1701bb8da41024fe80da0656c27e7c387091&item_key=116:0"
},
The item key changes from 115:0 to 116:0.
Would it it be possible to have the same item_keys after refresh?
I see this item_key changes even after changing the zone_id or output_id from other zone
{
"list": [
{
"title": "Search",
"subtitle": null,
"image_key": null,
"item_key": "118:0",
"input_prompt": {
"prompt": "Search",
"action": "Go"
},
"url_link": "http://localhost:3001/roonAPI/listByItemKey?zoneId=1601d53a8ad303a19906c7e10e0f6a0d5174&item_key=118:0"
},
– bastian