Author Topic: UPnP 2025 - Continuation of the original UPnP/DLNA plugin  (Read 33991 times)

hiccup

  • Hero Member
  • *****
  • Posts: 9106
The "living room" Squeezebox shows up in MB Preferences > Player > output.

That's what I was expecting to see, but I don't get that.
So if you select 'Living Room' as the output, does the music indeed play on that Squeezebox?

also,
Do you have LMS installed on the same PC as MusicBee, or do you have it running on a different computer (server?) in your network?

Haro

  • Newbie
  • *
  • Posts: 5
Thank you for awesome effort! It just worked for me the first TWO times (i put it on two different library devices and it worked to play to the UPNP device easy peasy)

 better than ever. In fact, solved some issues where it never really worked well or at all with Phantom speakers, but it does now really with ZERO configuration changes.  

The primary issue was using the configuration dialog (its sized too big for FHD with scaling over 100%) i use 150% but its even too big for 125% scaling, the buttons at the bottom or the full contents are not usable at  < =  125% scale.   or its super frustrating. workaround is to change the scale and configure it then set it back so its not horrible but a little polish here might help new users.

Suggestion: put some scroll bars on the Properties dialog and or size it a little smaller and or fix the bug that you can resize it but it actually huts the situation.  (scenario  i have win10 or 11 running a FHD resolution (1920x1080) at 150% scale - issue is the properties dialog is not usable) [workaround: set the scaling to 125 or 100 to configure things then set it back) it would be nice to just show scrollbars when the dialog is resized or just dynamically support re-sizing it but account for SCALING.  

in any case it worked great and made me start thinking how i can-do push-button "output device" changes now.

i figured out Control + O gets me to the dialog pretty close to where i want to be but what this makes me want to find is a way to script

Ctrl+O Select "Tv Room" (which is a UPNP Device name)
vs
Ctrl+O Select "AISO"
or any other option in the list i might want to use.
like Direct Show sometimes is what i want to do.

that's probably a different thread though. :)
and this 2025 plug in so far is great!! it works!

I did see it hung up Music Bee when i tried to change the source.  from playing to the UPNP back to Direct Show. but i just the window manager CLOSE Music bee and send the crash dump restart and i could select a different Output device..  not sure what got hung up there or if it repros.  I do think it had played out  meaning there was nothing playing but it was still connected to the Device.  not sure if i need to be sure to close the UPNP stream by stop or something before i change things.

next up is to see how the MULTIROOM (multi-system) works with the phantom speakers,  i expect it to 'just work' since i can PLAY to 1 system just fine.

thanks again!
Last Edit: January 26, 2025, 10:04:17 AM by Haro

BoringName

  • Sr. Member
  • ****
  • Posts: 916
Thank you for awesome effort! It just worked for me the first time better than ever. In fact, solved some issues where it never really quite right for my us case with Phantom speakers, with ZERO configuration changes. 

I honestly haven't done much to it, nearly all of it is the original code which is Steven's sweat and tears so far.

The primary issue was using the configuration dialog

I've just dealt with this issue on one of my other plugins so I should be able to sort this out.

Haro

  • Newbie
  • *
  • Posts: 5
re not doing much: HA well i get it- the original code was /is pretty complete and was a great pattern to follow to port 'the heavy lifting' was all done by the gods. thanks, Steven for creating and MAINTAINING one of the BEST APPS IN EXISTANCE.  but: Boringname, what you did is something and so kind of you to step up and make it work, even if it was just some porting and house keeping to keep it going it's so welcomed.

As i recall what was blocking my use case was something with some versioning mismatch that needed a bit of tuning up that i never quite got working on my own.

phred

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 10262
That's what I was expecting to see, but I don't get that.
So if you select 'Living Room' as the output, does the music indeed play on that Squeezebox?
It did not yesterday, but I think I need to check again today. I'll get back to you.

Quote
Do you have LMS installed on the same PC as MusicBee, or do you have it running on a different computer (server?) in your network?
LMS and MB are both on the same PC.
Download the latest MusicBee v3.6 patch from here.
Unzip into your MusicBee directory and overwrite existing files.

----------
The FAQ
The Wiki
Custom Forum Search
Posting screenshots is here

phred

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 10262
It did not yesterday, but I think I need to check again today. I'll get back to you.
@hiccup...
Good news and bad news.
When switching the MB's output to Living Room and playing an album, the artwork and metadata for the album appears on the Squeezebox. But it does not play. There's no indication in MB that the album is playing either. The VU meter shows no activity nor does the time remaining change. I still have the UPNP plugin at its default settings. At this point I don't want to change anything, but wanted you to see where I'm at and see if you can take it from here. But it looks to me like you're first issue - not seeing the Squeezebox player as an output device - needs to be resolved first.
Download the latest MusicBee v3.6 patch from here.
Unzip into your MusicBee directory and overwrite existing files.

----------
The FAQ
The Wiki
Custom Forum Search
Posting screenshots is here

hiccup

  • Hero Member
  • *****
  • Posts: 9106
Good news and bad news.
Same here.
I now have my Squeezebox showing as an option in MusicBee's 'output' dropdown.
The earlier problem of not even getting that to work may have been a result of me trying out Lyrion Music Server, instead of Logitech Media Server.
To be honest, I really don't like Lyrion's 'dumbed down' interface. It is really difficult to find any advanced settings.
And it also seems to suffer from some other issues.(e.g. I was never completely sure if it was actually running)

So I installed the older, but most recent version of Logitech Media Server (8.5.2) and I got that working fine within a couple of minutes.
But when playing music to the Squeezebox, there is nothing but silence and occasional (very loud!) bursts of noise.
(I tried it with various mp3 and flac files)
I will see if I can find something in the plugin settings that may possibly improve on this.

A warning to anyone wanting to try out LMS: set the volume of your speakers/headphones to a very low level!
The noise bursts that I am experiencing with all this are very loud!

phred

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 10262
But when playing music to the Squeezebox, there is nothing but silence and occasional (very loud!) bursts of noise.
(I tried it with various mp3 and flac files)
I will see if I can find something in the plugin settings that may possibly improve on this.
So the progress bar and countdown timer worked? They both showed progress? And you sometimes got blasted with sound. None of those happened with my testing.
Download the latest MusicBee v3.6 patch from here.
Unzip into your MusicBee directory and overwrite existing files.

----------
The FAQ
The Wiki
Custom Forum Search
Posting screenshots is here

hiccup

  • Hero Member
  • *****
  • Posts: 9106
So the progress bar and countdown timer worked? They both showed progress?
Yes, but very erratic, e.g. pausing for longer durations.
I fear the issue could also be with the LMS UPnP implementation by this 'Andy Grundman' dude.
It's a 1.0 release, and may have issues that are not addressed and/or is just not maintained?

I'm about as clueless about all this as I was yesterday.
And as I was many years ago, when I was trying to get this resolved while Steven was still active with his plugin.

Ah well, luckily I have plenty other options to get some music out of my speakers. But this would have been a nice(r) option.
Last Edit: January 26, 2025, 07:19:07 PM by hiccup

phred

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 10262
Ah well, luckily I have plenty other options to get some music out of my speakers. But this would have been a nice(r) option.
I agree. I wish there was a release date with v1.0. You can email the chap to see if he's still alive. [email protected]

I'll poke around the 3rd Party Software and see if I can find anything relevant.

Like you, I don't really need this as my Squeezebox connects directly to my music collection.
Download the latest MusicBee v3.6 patch from here.
Unzip into your MusicBee directory and overwrite existing files.

----------
The FAQ
The Wiki
Custom Forum Search
Posting screenshots is here

BoringName

  • Sr. Member
  • ****
  • Posts: 916
Yes, but very erratic, e.g. pausing for longer durations.


It's probably not going to work in WASAPI Exclusive mode.

hiccup

  • Hero Member
  • *****
  • Posts: 9106
It's probably not going to work in WASAPI Exclusive mode.
I don't think there is an option to define that after you have selected the UPnP output?
Or is there?


phred

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 10262
It's probably not going to work in WASAPI Exclusive mode.
I'm not using WASAPI Exclusive. And I don't think hiccup is either. The output dropdown can only select one output mode. I have chosen my Squeezebox player. I get no music from the device, although it does show the artwork that's embedded in the file. And MB isn't playing the song at all.
Download the latest MusicBee v3.6 patch from here.
Unzip into your MusicBee directory and overwrite existing files.

----------
The FAQ
The Wiki
Custom Forum Search
Posting screenshots is here

BoringName

  • Sr. Member
  • ****
  • Posts: 916
Right, sorry, I haven't played around with that side of things yet, I thought it would be listed as a sound device. The UPnP spec uses the term "Device" flat out so I had that on the brain.

The source code for Andy's media interface plugin is on github so down the track I should be able to troubleshoot the musicbee side of things, I can't do anything if the issue is caused by LMS.

phred

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 10262
Right, sorry, I haven't played around with that side of things yet
No problem. You did state initially that you really haven't gotten into things yet. While it would be nice being able to push to the LMS device, it's not critical for me. But thanks for taking this project under your wing.
Download the latest MusicBee v3.6 patch from here.
Unzip into your MusicBee directory and overwrite existing files.

----------
The FAQ
The Wiki
Custom Forum Search
Posting screenshots is here