Skip to main content

Notice

Please note that most of the software linked on this forum is likely to be safe to use. If you are unsure, feel free to ask in the relevant topics, or send a private message to an administrator or moderator. To help curb the problems of false positives, or in the event that you do find actual malware, you can contribute through the article linked here.
Topic: foo_upnp (Read 1639474 times) previous topic - next topic
0 Members and 5 Guests are viewing this topic.

foo_upnp

Reply #350
Ive tried to open the Audio CD-Playlist on the upnp-client but it doesnt show any track in it.


The plugin only exposes http and file items but it could probably work with audio-cd tracks as well.
Adding in the feature request list.



foo_upnp

Reply #352
I'm curious how the upnp server manages announcing itself on the network to new upnp clients?  I've noticed when running fb2k from my laptop with the upnp browser panel that my Orb server shows up almost immediately, while I have to wait sometimes several minutes before my fb2k upnp server shows up (both servers are running on the same computer).  Is this just a hard coded delay between 'announcements'?

I'll admit I'm pretty ignorant when it comes to how upnp really works, so if 'announce' is the wrong term you'll have to forgive me

foo_upnp

Reply #353
After more playing around, I'm not sure where the hangup is. The fb2k upnp browser finds my Orb server immediately, and WMP finds the fb2k server
right away as well. So the fb2k counterparts don't like eachother? I'm so confused...

foo_upnp

Reply #354
After more playing around, I'm not sure where the hangup is. The fb2k upnp browser finds my Orb server immediately, and WMP finds the fb2k server
right away as well. So the fb2k counterparts don't like eachother? I'm so confused...


There's a problem I need to figure out where either fb or WMP won't see another fb instance.

 

foo_upnp

Reply #355
Ok, good to know I'm not losing it  I was trying to troubleshoot this, playing around with OpenVPN and Windows Firewall, for a few hours the other night to no avail.

foo_upnp

Reply #356
Ok, good to know I'm not losing it  I was trying to troubleshoot this, playing around with OpenVPN and Windows Firewall, for a few hours the other night to no avail.



A silly bug introduced in 0.99.11 now fixed (first post to download):

0.99.12
---------

- silly mistake made the Media Server not appear in fb2k browser and WMP
- PlugPlayer profile will transcode lossless if Internet connection (needs to remove of foo_upnp.xml to be applied, otherwise unckeck manually "lossless" and "internet" for this profile).
- use more recent SDK

foo_upnp

Reply #357
The download link is wrong in the first post (but I found it one level up in the foo_upnp directory).  I've verified 0.99.12 in Properties -> Components.

However the server is still not being found in the fb2k upnp browser, and now not in WMP either.  I removed foo_upnp.xml from both server and browser just to be sure.  Orb is still showing up OK, and PlugPlayer is also working well.

My system specs in case it matters:

Win7 RTM
fb2k 0.9.6.8
upnp 0.99.12

If you need other info, just let me know.

foo_upnp

Reply #358
However the server is still not being found in the fb2k upnp browser, and now not in WMP either.


Strange. Works for me? here. Using fb on XP as the server and fb/wmp on Win7 Beta in VirtualBox.
0.99.11 was definitely broken in this regard though.

foo_upnp

Reply #359
Ok, so I've done a crapload of testing here, and come up with something (I guess).  I think there was some kind of conflict with Orb, so I uninstalled it.  After this I was still having problems.  I would restart my server computer (fb2k is set to startup with Win7) and I couldn't find the server.  If I were to restart the fb2k upnp server or restart fb2k, THEN it would show up.  WTH?  So I disabled the automatic startup of fb2k, and manually started it after the computer was fully running.  NOW my fb2k browser and WMP were able to find the server without any issue.

Any ideas on that one?  How often does the upnp server broadcast itself to Windows/network?  Just once on startup?  Every few minutes?  Does upnp even work that way?

foo_upnp

Reply #360
Here's another piece to the puzzle, at least this time it's reproduceable.

1.  Restart server computer.
2.  Wait a minute, start fb2k server, wait a minute, start fb2k browser (on laptop) -> upnp server is visible in browser.
3.  Start OpenVPN on server, wait a minute, restart fb2k browser -> upnp server is STILL visible in browser.
4.  Restart fb2k on the server computer (not the whole computer), wait a minute, restart browser -> upnp is NO LONGER visible in browser.
5.  Close OpenVPN on server, wait a minute, restart browser -> upnp is STILL NOT visible in browser.
6.  Restart fb2k on the server computer, wait a minute, restart browser -> upnp is STILL NOT visible in browser.

At this point, nothing brings back the server in the browser but a restart of the server computer.  So there is some conflict here as well with OpenVPN.  I've googled, but I can't find any info on OpenVPN causing problems with upnp devices.  As I said before, Orb was always visible in the fb2k browser regardless of OpenVPN.

foo_upnp

Reply #361
Autodiscovery uses the SSDP protocol which in turn uses UDP Multicast to announce devices. Whenever the server does not appear in the browser it is most likely UDP multicast packets that are not received by the client.
Each time the server is launched it announces itself on the network. When the browser is instanciated (either by launching fb2k or adding it to the layout), it sends an UDP multicast  Search  packet to which exisitng UPnP devices respond.
Hope this clears up how it works a bit.
It seems OpenVPN may have a problem with multicast but there's not a lot of info for it. This guy seems to have a similar problem where multicast packets won't be received:
http://openvpn.net/archive/openvpn-users/2...2/msg00156.html
What's strange is that upnp is not working anymore when you shutdown OpenVPN. But I'm not that surprised as I had UPnP not working anymore in some cases after using wireshark, and had to reboot.

I'll probably play myself with OpenVPN and i'll see how it goes. It is not totally impossible the plugin could do sth better when there is a VPN.

foo_upnp

Reply #362
Each time the server is launched it announces itself on the network.

What/who keeps track of this announcement?  The server's OS?  If so, that might explain why it wasn't working if I started fb2k immediately with Windows.  Currently I set up a scheduled logon task that launches fb2k after a 30 second delay.  That works well

The OpenVPN thing is puzzling.  That person's post deals with upnp traversing an OpenVPN tunnel.  Here, just the fact that an OpenVPN tunnel ever existed seems to be causing problems on the local network.

foo_upnp

Reply #363
I've had some modest success!  I was looking through my router settings and found an option in the firewall that blocks multicast traffic.  This has always been enabled by default, and I didn't think to change it because it shouldn't mean anything to the local internal network, only inbound internet traffic.  I turned it off anyway, and rebooted the whole network (modem, router, all computers).  Again I tested the list as above.  This time however, 90% of the time the fb2k server is found by the browser, regardless of the state of OpenVPN.  This is good news!  Why it doesn't work 100% of the time I don't know, but 90 is better than 0. Sometimes I still have to restart fb2k on the server computer several times until the browser can find it, but after it finds it once it seems to always find it after that for that run of the fb2k server.

This got me thinking.  Suppose my router was somehow interfereing with multicast.  Is it possible that your upnp framework uses unicast if it only detects one subnet on the host computer?  This would explain why it works just fine before OpenVPN is introduced.  Then after it is restarted and sees the OpenVPN network it switches to multicast?  I'm guessing wildly here, but there has to be some reason for this behavior.

A few suggestions to make things run a little more smoothly maybe:

1)  Have the server re-announce itself every few minutes, or once a minute, or whatever.  Hopefully that is standards compliant...
2)  Place a manual refresh button in the browser so you can manually search for new (or old) upnp devices without having to restart fb2k.

I have a feeling there's a timing issue somewhere in here that is elusive, so these two changes might help alleviate that.

foo_upnp

Reply #364
So I'm having a weird problem. When I try and right click on the browser panel to bring up the context menu so that I can add my remote server, I get this context menu:



I don't seem to get a UPnP context menu, no matter what I do. Any ideas what could be causing this? I don't seem to have this problem with any other ui_columns elements.

foo_upnp

Reply #365
EDIT: you can try to set a column to $meta(artist,0) and see if it always display the artist.

Thanks for the suggestion.  I tried it and it is returning "Unknown".  I still can't find a pattern as to when it gets the artist tag successfully and when it does not.  Is there any other test I can do to help?


I had some more time to look into this and here's what I found.

In the properties of a file that does not show the artist properly, I see:

<UPNPDIDL>:
Code: [Select]
<DIDL-Lite xmlns="urn:schemas-upnp-org:metadata-1-0/DIDL-Lite/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:upnp="urn:schemas-upnp-org:metadata-1-0/upnp/" xmlns:dlna="urn:schemas-dlna-org:metadata-1-0/"><item id="1$12$1684301006$1684301013$3026479887" refID="1$268435466$2013266774" parentID="1$12$1684301006$1684301013" restricted="1">
  <dc:title>Party Up</dc:title>
  <dc:creator>Unknown</dc:creator>
  <upnp:artist>DMX</upnp:artist>
  <upnp:album>Unknown</upnp:album>
  <upnp:genre>Unknown</upnp:genre>
  <res size="6446891" duration="0:04:29.000" protocolInfo="http-get:*:audio/mpeg:DLNA.ORG_PN=MP3;DLNA.ORG_OP=01;DLNA.ORG_FLAGS=01700000000000000000000000000000">http://removedip/disk/music/DLNA-PNMP3-OP01-FLAGS01700000/O1$12$1684301006$1684301013$3026479887.mp3</res>
  <upnp:class>object.item.audioItem.musicTrack</upnp:class>
</item></DIDL-Lite>

<UPNPSIZE>:
6446891




This second file does show the artist, but only when foobar actually plays the song.  I don't know why it only shows the artist when it plays the song, because when I look at the file properties through foobar, the UPNP tags appear to be complete:

<UPNPDIDL>:
Code: [Select]
<DIDL-Lite xmlns="urn:schemas-upnp-org:metadata-1-0/DIDL-Lite/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:upnp="urn:schemas-upnp-org:metadata-1-0/upnp/" xmlns:dlna="urn:schemas-dlna-org:metadata-1-0/"><item id="1$12$1684301006$1684301013$3026479965" refID="1$268435466$2013266813" parentID="1$12$1684301006$1684301013" restricted="1">
  <dc:title>On My Block</dc:title>
  <dc:creator>Unknown</dc:creator>
  <upnp:artist>Scarface</upnp:artist>
  <upnp:album>Unknown</upnp:album>
  <upnp:genre>Blues</upnp:genre>
  <dc:date>2002-01-01</dc:date>
  <res size="5079839" duration="0:03:32.000" protocolInfo="http-get:*:audio/mpeg:DLNA.ORG_PN=MP3;DLNA.ORG_OP=01;DLNA.ORG_FLAGS=01700000000000000000000000000000">http://removedip/disk/music/DLNA-PNMP3-OP01-FLAGS01700000/O1$12$1684301006$1684301013$3026479965.mp3</res>
  <upnp:class>object.item.audioItem.musicTrack</upnp:class>
</item></DIDL-Lite>

<UPNPSIZE>:
5079839


I am using foobar 9.6.9 and foo_upnp 0.99.12.  Files are being streamed from a TwonkyMedia Server 4.4.17.  Clearly the artist information does exist for both files, but for the first one, it never shows it in foobar, and in the second one, it only shows when I play the song.  (As an aside, the track title always appears.)

Nobody else have this issue?

foo_upnp

Reply #366
I am using foobar 9.6.9 and foo_upnp 0.99.12.  Files are being streamed from a TwonkyMedia Server 4.4.17.  Clearly the artist information does exist for both files, but for the first one, it never shows it in foobar, and in the second one, it only shows when I play the song.  (As an aside, the track title always appears.)


Fixed in 0.99.13 (first post to download):

- browser: fix: %artist% not appearing with Twonky and possibly other Media Servers (was using dc:creator instead of upnp:artist)
- server: new: can stream cdda:// items. Play works only if cd not playing on the server. Seek is slow
- server: fix: can stream (as PCM or MP3) xa:// items managed by foo_adpcm, and other foo_adpcm items without crashing.

foo_upnp

Reply #367
I don't seem to get a UPnP context menu, no matter what I do. Any ideas what could be causing this? I don't seem to have this problem with any other ui_columns elements.


What CUI container did you use to put the upnp panel in ?

foo_upnp

Reply #368
What CUI container did you use to put the upnp panel in ?

Panel Stack Splitter


foo_upnp

Reply #370
Did you try right-clicking in an empty area of the browser ? displays the browser's menu for me.

Yup. No matter where I click I get the exact same menu, unless I right click on the text box, and then I get the Cut/Copy/Paste contextual menu. Is there any way another panel could somehow be interfering? I assume that menu I'm getting is for the PSS because I have the option to add panels/splitters/etc. into the container. I move the PSS containing the UPnP Browser to the top of the stack, and still have the same problem, so I don't really know what to do.

foo_upnp

Reply #371
I can't find any titles on my PS3. I find all the folders, including Artists, Albums and Playlists and more. But there are no titles :\ Have I done anything wrong? I tried searching the thread, but found nothing.

foo_upnp

Reply #372
Panel Stack Splitter


how are you positioning your panel? i find some panels won't show the context menu if using $movepanel_c  - instead use the panel list to set this stuff.

foo_upnp

Reply #373
Great plugin - with fb2k's great codec support this should mean, for example, that I should be able to listen to all the various game formats from foo_gep, etc., on my 360.  I say should, as opposed to can, because I'm finding that a lot of formats (mainly ones with subsongs) aren't working properly.  On another instance of fb2k, I get 404 errors (Unable to open item for playback (File Not Found (404)):
"upnp://aHR0cDovLzE5Mi4xNjguMC4xOTc6NTY5MjMvY29udGVudC8wYTE1MGYyMmQwYTc4NmMyODdmYzY3YzAwYzY3NDdjYS5taW5pMnNm") trying to actually play a lot of them from the server and they similarly don't work from my 360, presumably for the same reason.

My sources are mostly the archives from vgm.hcs64.com.  NSF's are somewhat hit-or-miss, SPC's and VGM's don't work at all, etc., etc.  Is this a known limitation / problem that I missed or have I stumbled across a new bug?  FWIW, I left the songs in their archives as-downloaded, but they do in fact show up in and play fine when browsing the local song library and they obviously are selectable for playing via UPnP; just the actual playing doesn't work...

foo_upnp

Reply #374
Great plugin - with fb2k's great codec support this should mean, for example, that I should be able to listen to all the various game formats from foo_gep, etc., on my 360.  I say should, as opposed to can, because I'm finding that a lot of formats (mainly ones with subsongs) aren't working properly.


Probably a bug, never tried items managed by foo_gep. I'll try and see how it goes.