More > JRiver Media Center 32 for Windows

Apparently Functional Integration with HomeAssistant

<< < (4/6) > >>

mattkhan:
both those issues should be fixed now (update the repo in HACS to pull it down)

hoyt:

--- Quote from: mattkhan on January 08, 2024, 02:20:33 pm ---interesting, it means you're hitting a path that I wasn't expecting to be hit but is present in other media_player integrations in the HA codebase :)

it means media_type == 'file' but I haven't managed to hit that in my browse tree so am wondering how you get there, will have to play around some more to see where it comes from

--- End quote ---

I noticed when I play via Panel at this level, it still sends keys back into MCWS. I tried to reset the logs and make this straightforward:


--- Code: ---0042356: 5444: Sharing Plugins: JRWebService::Process: URL: /MCWS/v1/Browse/Files?Version=2&Token=SS92c31A&ID=1591&Action=Serialize
0042368: 9512: Sharing Plugins: CHTTPListenerWorker::HandleRequest: TCP: 192.168.6.225: GET: http://192.168.3.202:52199/MCWS/v1/Browse/Children?Version=2&Token=SS92c31A&ID=1601
0042368: 7788: Database: CSearchFilesHelper::GetResults: Search: [Album Artist (auto)]=[Alexi Murdoch] [Filename (path)]="verified" -[Filename (path)]="00_not_in_db_yet"; Elapsed ms: 17.460
0042368: 9512: Sharing Plugins: JRWebService::Process: Start
0042368: 9512: Sharing Plugins: JRWebService::Process: URL: /MCWS/v1/Browse/Children?Version=2&Token=SS92c31A&ID=1601
0042369: 7788: Sharing Plugins: JRWebService::Process: Finish (23 ms)

...

Then lots of other artists, I assume when it "draws" the page

Then some more navigation as I pull up the actual concert, which is stored in the Season tag (2011-03-24):
...

0049950: 9512: Sharing Plugins: CHTTPListenerWorker::HandleRequest: TCP: 192.168.6.225: GET: http://192.168.3.202:52199/MCWS/v1/Browse/Files?Version=2&Token=SS92c31A&ID=2856&Action=Serialize
0049951: 9512: Sharing Plugins: JRWebService::Process: Start
0049951: 9512: Sharing Plugins: JRWebService::Process: URL: /MCWS/v1/Browse/Files?Version=2&Token=SS92c31A&ID=2856&Action=Serialize
0049958: 9512: Database: CSearchFilesHelper::GetResults: Search: [Source]=[] [Season]=[2011/-03/-24] [Series]=[] [Album Artist (auto)]=[Alexi Murdoch] [Filename (path)]="verified" -[Filename (path)]="00_not_in_db_yet"; Elapsed ms: 6.412

...

0052193: 7788: Sharing Plugins: CHTTPListenerWorker::HandleRequest: TCP: 192.168.6.225: GET: http://192.168.3.202:52199/MCWS/v1/Playback/SetPlaylist?Zone=10512&Playlist=2%3B15%3B0%3B446187%3B446186%3B446189%3B446195%3B446198%3B446192%3B446185%3B446191%3B446193%3B446199%3B446196%3B446188%3B446190%3B446197%3B446194&Token=SS92c31A
0052194: 7788: Sharing Plugins: JRWebService::Process: Start
0052194: 7788: Sharing Plugins: JRWebService::Process: URL: /MCWS/v1/Playback/SetPlaylist?Zone=10512&Playlist=2%3B15%3B0%3B446187%3B446186%3B446189%3B446195%3B446198%3B446192%3B446185%3B446191%3B446193%3B446199%3B446196%3B446188%3B446190%3B446197%3B446194&Token=SS92c31A
0052195: 7788: Sharing Plugins: JRWebService::Process: Finish (1 ms)
0052195: 7788: Sharing Plugins: VHTTPMessage::Write: Wrote 83 bytes
0052195: 9512: Sharing Plugins: CHTTPListenerWorker::HandleRequest: TCP: 192.168.6.225: GET: http://192.168.3.202:52199/MCWS/v1/Playback/PlayByIndex?Zone=10512&Index=0&Token=SS92c31A
0052196: 9512: Sharing Plugins: JRWebService::Process: Start
0052196: 9512: Sharing Plugins: JRWebService::Process: URL: /MCWS/v1/Playback/PlayByIndex?Zone=10512&Index=0&Token=SS92c31A

--- End code ---

hoyt:

--- Quote from: mattkhan on January 08, 2024, 03:03:23 pm ---both those issues should be fixed now (update the repo in HACS to pull it down)

--- End quote ---

Wow, thanks! Just updated and click Play at a higher level is pushing the content into my zone correctly now.

mattkhan:
interesting, thanks.

They seem equivalent in the sense that both operations require 2 calls

technically my approach has a race condition (I make 2 calls to play, once to clear the playlist and then to to Browse/File to play it) so the panel implementation is superior in that regard, on the other hand the panel impl could lead to a massive URL which provokes a 414 response.

I'd say both problems are theoretical rather than practical as I assume people don't attempt to play truly gigantic playlists and the probability of someone adding content to playing now at just the right time inbetween the two calls I make seems vanishingly small :)

mattkhan:
so far I haven't implemented use of an access key, does anyone need this? i.e. have HA connect via an access key instead of directly to host/ip?

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version