INTERACT FORUM

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: [REQ] Add each zone playing now as a node in the Browse tree  (Read 247 times)

mattkhan

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 4232
[REQ] Add each zone playing now as a node in the Browse tree
« on: October 22, 2024, 03:03:31 am »

currently you can add a special item "playlist" to the remote view which adds all known playlists to the browse tree, this makes it possible for any remote app to access playlists in the same way they do other parts of a library

the request is to add zones as another special item and use this to show the current playlist in each zone in the same way

the benefit is that every app that understands how to navigate, render and interact with the browse tree can now do the same with each zone (rather than having to create some custom view on playing now)
Logged

Matt

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 42376
  • Shoes gone again!
Re: [REQ] Add each zone playing now as a node in the Browse tree
« Reply #1 on: October 22, 2024, 02:05:08 pm »

I'm hesitant to change:
http://localhost:52199/MCWS/v1/Browse/Children?Version=1&ErrorOnMissing=0

Because it's versioned and bumping the version causes customization to be discarded and the stock views to be loaded.

Is there some other way we could make this work? Thanks.
Logged
Matt Ashland, JRiver Media Center

mattkhan

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 4232
Re: [REQ] Add each zone playing now as a node in the Browse tree
« Reply #2 on: October 22, 2024, 02:31:25 pm »

I didn't see a need to change the format, it's just a "special" node that you can add like playlists

e.g. querying the root would give you something like

Code: [Select]
<Response Status="OK">
<Item Name="Audio">1</Item>
<Item Name="Video">3</Item>
<Item Name="Images">2</Item>
<Item Name="Playlists">4</Item>
<Item Name="Zones">5</Item>
</Response>

so then MCWS/v1/Browse/Children?ID=5 would produce something like

Code: [Select]
<Response Status="OK">
<Item Name="Player">1001</Item>
<Item Name="Upstairs">1002</Item>
<Item Name="Kitchen">1003</Item>
</Response>

and then MCWS/v1/Browse/Children?ID=1001 would produce the usual response for when we hit a list of files, i.e.

Code: [Select]
<Response Status="OK"/>

so then you'd use MCWS/v1/Browse/Files?ID=1001&Action=JSON instead and get a list of entries
Logged

Matt

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 42376
  • Shoes gone again!
Re: [REQ] Add each zone playing now as a node in the Browse tree
« Reply #3 on: October 22, 2024, 02:59:39 pm »

Yeah, that would probably work. Let me look at it tomorrow. Thanks.
Logged
Matt Ashland, JRiver Media Center

Matt

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 42376
  • Shoes gone again!
Re: [REQ] Add each zone playing now as a node in the Browse tree
« Reply #4 on: October 25, 2024, 11:46:47 am »

Logged
Matt Ashland, JRiver Media Center
Pages: [1]   Go Up