More > JRiver Media Center 32 for Windows
Apparently Functional Integration with HomeAssistant
hoyt:
--- Quote from: mattkhan on January 08, 2024, 12:23:53 pm ---I retested
say I have one of the standard browse like Audio > Album then playing a specific album works fine, browse to another album then it replaces playing now with that new album but playing a single entry (e.g. a single track in the album) only plays the 1st item even if I pick the nth so there must be some bug there
If I now go and pick another album to play, it plays as expected
I cannot reproduce this "append a track to playing now" behaviour though, regardless of what I pick, which is what I'd expect because it calls Playback/ClearPlaylist before it plays anything new
can you look at the MC logs and see what MCWS calls are coming in? grep for MCWS should do it
i.e. lines that have this sort of format
--- Code: ---0000025: 15484: Sharing Plugins: JRWebService::Process: URL: /MCWS/v1/Playback/Info?Fields=Aspect%20Ratio%3BHDR%20Format%3BPlayback%20Info&Zone=10002&ZoneType=ID
--- End code ---
--- End quote ---
I missed that you had split the thread so I didn't see this.
The hierarchy that I was messing with is for my live recordings, which means it's set like this: Audio,Live|Album Artist (auto),Series/ Tour, Season/ Show Date, Source, Type
Perhaps I'd be better off testing with more standard views, but that's what I picked off the bat. If I navigate to an Artist, then a Tour and hit play on a Show Date, I see something like this:
--- Code: ---0004519: 8224: Sharing Plugins: JRWebService::Process: URL: /MCWS/v1/Playback/PlayByFilename?Filenames=N%7C2857%7CAudio+%3E+Live+%3E+Alexi+Murdoch+%3E+Unassigned+%3E+2011-03-24+%3E+Unassigned+%3E+flac16
--- End code ---
However, that's not the filename, that's just how I have the views broken up.
If I play the individual file, it plays via the key, which then works:
--- Code: ---0154156: 7824: Sharing Plugins: CHTTPListenerWorker::HandleRequest: TCP: 192.168.2.102: GET: http://192.168.3.202:52199/MCWS/v1/Playback/PlayByKey?Key=446186
--- End code ---
hoyt:
--- Quote from: mattkhan on January 08, 2024, 12:23:53 pm ---
I cannot reproduce this "append a track to playing now" behaviour though, regardless of what I pick, which is what I'd expect because it calls Playback/ClearPlaylist before it plays anything new
--- End quote ---
I think this is happening because of the way that the filename is being passed back because MC then tries to find files that aren't named that way:
--- Code: ---0004945: 8224: Sharing Plugins: CHTTPListenerWorker::HandleRequest: TCP: 192.168.2.102: GET: http://192.168.3.202:52199/MCWS/v1/Playback/PlayByFilename?Filenames=N%7C2857%7CAudio+%3E+Live+%3E+Alexi+Murdoch+%3E+Unassigned+%3E+2011-03-24+%3E+Unassigned+%3E+flac16
0004945: 8224: Sharing Plugins: JRWebService::Process: Start
0004945: 8224: Sharing Plugins: JRWebService::Process: URL: /MCWS/v1/Playback/PlayByFilename?Filenames=N%7C2857%7CAudio+%3E+Live+%3E+Alexi+Murdoch+%3E+Unassigned+%3E+2011-03-24+%3E+Unassigned+%3E+flac16
0004945: 8224: Database: CMediaDatabase::AddFile: JRAnalyzer: 0x19e9cfe7130
0004945: 8224: Database: CMediaDatabase::AddFile: Calling JRAnalyzer::Open
0004945: 8224: Import: JRAnalyzer::Open: Start
0004945: 8224: Import: JRAnalyzer::AddFile: Start
0004945: 8224: Import: JRAnalyzer::AddFile: Filename: N
0004945: 8224: Import: JRAnalyzer::AddFile: Start
0004945: 8224: Import: JRAnalyzer::AddFile: Filename: N
0004945: 8224: Import: JRAnalyzer::AddFileData: Start
0004946: 8224: Import: JRAnalyzer::AddFileData: Finish (0 ms)
0004946: 8224: Import: JRAnalyzer::AddFile: Finish (0 ms)
0004946: 8224: Import: JRAnalyzer::AddFile: Finish (0 ms)
0004946: 8224: Import: JRAnalyzer::Open: Finish (0 ms)
0004946: 8224: Database: CMediaDatabase::AddFile: JRAnalyzer::Open returned
0004946: 8224: Database: CMediaDatabase::AddFile: JRAnalyzer: 0x19e9cfe65d0
0004946: 8224: Database: CMediaDatabase::AddFile: Calling JRAnalyzer::Open
0004946: 8224: Import: JRAnalyzer::Open: Start
0004946: 8224: Import: JRAnalyzer::AddFile: Start
0004946: 8224: Import: JRAnalyzer::AddFile: Filename: 2857
0004946: 8224: Import: JRAnalyzer::AddFile: Start
0004946: 8224: Import: JRAnalyzer::AddFile: Filename: 2857
0004946: 8224: Import: JRAnalyzer::AddFileData: Start
0004946: 8224: Import: JRAnalyzer::AddFileData: Finish (0 ms)
0004946: 8224: Import: JRAnalyzer::AddFile: Finish (0 ms)
0004946: 8224: Import: JRAnalyzer::AddFile: Finish (0 ms)
0004946: 8224: Import: JRAnalyzer::Open: Finish (0 ms)
0004946: 8224: Database: CMediaDatabase::AddFile: JRAnalyzer::Open returned
0004946: 8224: Database: CMediaDatabase::AddFile: JRAnalyzer: 0x19e9cfe6e90
0004946: 8224: Database: CMediaDatabase::AddFile: Calling JRAnalyzer::Open
0004946: 8224: Import: JRAnalyzer::Open: Start
0004946: 8224: Import: JRAnalyzer::AddFile: Start
0004946: 8224: Import: JRAnalyzer::AddFile: Filename: Audio > Live > Alexi Murdoch > Unassigned > 2011-03-24 > Unassigned > flac16
0004946: 8224: Import: JRAnalyzer::AddFile: Start
0004946: 8224: Import: JRAnalyzer::AddFile: Filename: Audio > Live > Alexi Murdoch > Unassigned > 2011-03-24 > Unassigned > flac16
0004946: 8224: Import: JRAnalyzer::AddFileData: Start
0004946: 8224: Import: JRAnalyzer::AddFileData: Finish (0 ms)
0004946: 8224: Import: JRAnalyzer::AddFile: Finish (0 ms)
0004946: 8224: Import: JRAnalyzer::AddFile: Finish (0 ms)
0004946: 8224: Import: JRAnalyzer::Open: Finish (0 ms)
0004946: 8224: Database: CMediaDatabase::AddFile: JRAnalyzer::Open returned
0004946: 8224: Sharing Plugins: JRWebService::Process: Finish (0 ms)
--- End code ---
mattkhan:
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
mattkhan:
--- Quote from: mattkhan on January 08, 2024, 12:23:53 pm ---say I have one of the standard browse like Audio > Album then playing a specific album works fine, browse to another album then it replaces playing now with that new album but playing a single entry (e.g. a single track in the album) only plays the 1st item even if I pick the nth so there must be some bug there
--- End quote ---
was wrong about this, it is playing the right track
mattkhan:
on the other hand, I did recreate that "it duplicated playing now" behaviour and I think it's a bug in MC, posted separately in https://yabb.jriver.com/interact/index.php/topic,137793.0.html
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version