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

BoringName

  • Sr. Member
  • ****
  • Posts: 916
For what it's worth. The Play to a UPnP device option seems to work fine with BubbleUPnP on my android device.

I initially got "No connection could be made because the target machine actively refused it" errors but once I disabled windows firewall that issue went away so it just needs a rule for the specific port reported in the error log.

Selecting play in musicbee played that track on my phone, it even spoke out the title (verbeeliser) on the phone which I forgot I had enabled. I pressed pause on the phone and it paused musicbee so it processes commands from each end of the connection.

So that side of things works which points to more of an issue with LMS than the plugin.

Something to look into at a later date.

edit: It didn't send the verbeeliser to my phone, that actually came through my PC speakers and I didn't realise at the time, I should have because there is no way it could have been streamed.... sorry.
Last Edit: January 30, 2025, 01:51:12 PM by BoringName

hiccup

  • Hero Member
  • *****
  • Posts: 9106
I don't really need this as my Squeezebox connects directly to my music collection.
Sure, but MusicBee's interface is so much better than LMS's, and has a thousand times more options.
And for example, you can't use your auto-playlists on LMS. (you could sync static ones to LMS, but that's still some hassle)

Also, LMS will usually depend on you having setup some auto-syncing. (e.g. once a day or so)
So you can forget about some impulsive listening to new stuff that is available in your Bee.

I don't 'really need this' either.
And yet I do  ;-)

But I probably should investigate the Lyrion forum about all this stuff first.
I believe there are mixed experiences with their 1.0 UPnP plugin, and there is another guy quite active with a 'reverse' UPnP plugin.
(using LMS to stream to UPnP devices)
Let's see if I can perhaps bother them a bit ;-)
Last Edit: January 26, 2025, 09:03:21 PM by hiccup

BoringName

  • Sr. Member
  • ****
  • Posts: 916
New version 1.0.1

I'm trying to direct download clicks to this site rather than straight to my own storage so I've linked to the plugin page but it seems it's taking a while to refresh so if the download button doesn't link to version 1.0.1, maybe just wait a while.

Changes -
- Replaced the Listbox on the config page as it's known to cause display issues with hi DPI on windows 11.
- Changed the config page so all the buttons remain visible/usable at higher display scale settings.

I'm not happy with how it looks at 125%/150%. I need to do some more work on it but at least it should be functional now.

There is no functional changes in this version so unless you're using a display scale higher than 100% there is no point updating to it.

BoringName

  • Sr. Member
  • ****
  • Posts: 916
New version 1.1

Changes
- Fixed the layout of the config page when Windows scaling set to greater than 100%, properly this time. At least it should be, if someone running Windows 11 could let me know.
- Fixed an issue that would prevent MusicBee controlling devices that advertised as a MediaRenderer:3 device.

After going through all the different UPnP device/service versions there is little reason to support the higher versions as they don't add any required functionality for this plugin. At least for it not to work as it currently is. Down the track it might be required to add IPv6 support which probably isn't that urgent. How many people are running pure IPv6 networks?

The backwards compatibility of the UPnP spec means it shouldn't cause any issues sticking with the lower versions as long as other devices have implemented the spec correctly.

So at this point feel free to fill the thread with any issues you are having. It will help a lot if you check the "log debug information" checkbox, make sure the log is cleared, perform whatever action you are having issues with and include the resulting debug log in your post.

aktor

  • Sr. Member
  • ****
  • Posts: 336
I would suggest that everyone for whom that plugin works to post the setup or devices that are used so there could be a database of supported devices. My interest would be which audio streamers (like WIIM mini) work with this plugin.

BoringName

  • Sr. Member
  • ****
  • Posts: 916
I would suggest that everyone for whom that plugin works to post the setup or devices that are used so there could be a database of supported devices. My interest would be which audio streamers (like WIIM mini) work with this plugin.

I'd rather not clog up the thread, especially when the list it doesn't work on should be a lot smaller than the list it does work on. Feel free to start a separate thread to track working devices if that's what you want.

BoringName

  • Sr. Member
  • ****
  • Posts: 916
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 had a play around with this today, that's an afternoon I will never get back.....

I first tried with setting VLC as the player which you can do connecting to the MP3 stream address listed in LMS settings. Once I started streaming in VLC it appeared as an output option in musicbee. All I got was silence and occasional loud bursts even when I wasn't playing anything. The stream would drop out randomly as well. The volume setting in LMS couldn't be changed, it was stuck on minimum.

I gave up on VLC and tried their simulated squeezebox player. Total trash.

It wouldn't stop playing like VLC but the player would just list the song name on it and nothing else, in the web UI it showed as if the track was playing.

I think the problem is LMS isn't receiving the song from Musicbee and sending it to the player like BubbleUpNP does. Instead LMS tells the squeezebox to get the song from Musicbee which it attempts to do as I see it in the log but I think it has the wrong connection info as nothing seems to happen after that. I didn't investigate it fully as I was really over it by this stage.

There ends up being multiple devices. LMS is listed as a UPnP server. Once the squeezebox is started it gets listed as a renderer and Musicbee can use it as an output device but when you try and play a song the squeezebox connects back to Musicbee with iTunes as the useragent description. This is probably whats screwing it up, musicbee is trying to stream it to LMS but the squeezebox is trying to get it at the same time screwing things up.

Disabling the firewall didn't help and the LMS server log is bloody useless.

BoringName

  • Sr. Member
  • ****
  • Posts: 916
Got LMS working. I can't believe I wasted all friggin day because of a stupid firewall.

I disabled the private and domain firewall during testing and when I added firewall rules I only ticked the private network. Turns out if you tick public network LMS works just fine... /grrr

So just make sure Musicbee is allowed through the firewall. Private and public.
And private and public for the Lyrion server
C:\Program Files\Lyrion\Perl\perl\bin\perl.exe

It seems the start up order could cause weird things as well. I started LMS, then Softsqueeze (squeezebox emulator) then Musicbee, made sure Softsqueeze was listed as the output and everything seemed to work after that.

hiccup

  • Hero Member
  • *****
  • Posts: 9106
I had a play around with this today, that's an afternoon I will never get back.....
Thanks for your pro-activity with this!
Some comments:

- for anyone wanting to try this out who doesn't own a Squeezebox:
   there is a software version of a Squeezebox available, named SqueezePlay
   LMS will see and treat that one similar to a physical Squeezebox device
   (repeated warning: turn your volume down for possible extremely loud digital noise bursts!)

-  I tried if I could get this to work with foobar2000
  (it also has a UPnP output plugin available)
  But that also fails to play music to my LMS/Squeezebox, immediately throwing some generic UPnP error.

So, it's off to the Lyrion forum and see what that may bring…

edit:
(I wrote and posted this before reading your latest post)
So the firewall could be an issue? I think I only have it allowing private traffic.
I'll see what happens if I allow public also. (probably tonight)
Last Edit: January 29, 2025, 12:13:13 PM by hiccup

KenDavies

  • Newbie
  • *
  • Posts: 16
I've just tried downloading the plug-in and Windows throw a virus warning and refuses to download it. Is there an alternative download location?

BoringName

  • Sr. Member
  • ****
  • Posts: 916
I've just tried downloading the plug-in and Windows throw a virus warning and refuses to download it. Is there an alternative download location?

The download location isn't the issue. Windows isn't reporting it as a virus for me. But I uploaded it to Virustotal.com and 1 out of 66 reported it as a virus and that 1 was microsoft.

Trojan:Script/Wacatac.B!ml

I'll look into it.

edit: So the "!ml" part of the name means it's been detected by machine learning. What's probably happened is some jerk off has taken Steven's code as the source has been linked here for years and altered it to make a malicious program. The machine learning has now linked that code as malicious so anything made from the same code is getting flagged even if it's virus free, which explains why microsoft is the only one flagging it.

More info here in Rob's post - Link

I'm going to wait a day or two, if it's still getting flagged I'll see if I can work something out.
Last Edit: January 29, 2025, 11:22:38 PM by BoringName

KenDavies

  • Newbie
  • *
  • Posts: 16

The download location isn't the issue. Windows isn't reporting it as a virus for me. But I uploaded it to Virustotal.com and 1 out of 66 reported it as a virus and that 1 was microsoft.

Trojan:Script/Wacatac.B!ml

I'll look into it.

Many thanks, it did strike me as an unlikely positive but paranoia rules.

BoringName

  • Sr. Member
  • ****
  • Posts: 916
So the firewall could be an issue? I think I only have it allowing private traffic.
I'll see what happens if I allow public also. (probably tonight)

It was 100% the issue for me. I was having the symptoms you described and they went away once I added them to the public firewall settings.

But I was using the emulator thing so on top of adding LMS and musicbee, you might need to do something with the Squeezebox. I assume these are separate devices on your network with their own IP?

The firewall settings on your PC should allow traffic to the Squeezebox but if you have a firewall on your router/switch you may need to open some ports on that.

BoringName

  • Sr. Member
  • ****
  • Posts: 916
Many thanks, it did strike me as an unlikely positive but paranoia rules.

All good now - VirusTotal

0/72 including microsoft.

edit: I initially tried it zipped up this morning and apparently microsoft has been a bit trigger happy on zipped up content over the years. That recent upload was the unzipped DLL.

KenDavies

  • Newbie
  • *
  • Posts: 16

All good now - VirusTotal

0/72 including microsoft.

edit: I initially tried it zipped up this morning and apparently microsoft has been a bit trigger happy on zipped up content over the years. That recent upload was the unzipped DLL.

I've just tried again (12:20 GMT) and it's still bringing up the virus warning and refusing to download.