One of Amarok 2.4.0 new features is the ability to play music from a UPNP device like a DLNA media server. Unfortunately there's no USE flag to enable this feature, it allways get's built without the flag WITH_UPNP. It would be great if this could be supported, I waited for this feature for quite some time. Reproducible: Always Steps to Reproduce:
I think the upnp collection plugin get installed: $equery f amarok | grep upnp /usr/lib/kde4/amarok_collection-upnpcollection.so /usr/share/kde4/services/amarok_collection-upnpcollection.desktop
After some research I found out that it needs the mediaserver ioslave from http://gitorious.org/kio-upnp-ms to work. Unfortunately there isn't an ebuild for this one in portage, would be great if someone could add this.
(In reply to comment #2) > After some research I found out that it needs the mediaserver ioslave from > http://gitorious.org/kio-upnp-ms to work. Unfortunately there isn't an ebuild > for this one in portage, would be great if someone could add this. Thanks for the hint. I will create an ebuild as soon as I have time (keep looking for it in cj-overlay). kio-upnp-ms-0.8 work with kde4 eclass, but we will need an ebuild for hupnp lib as well
I added an ebuild for herqq-0.8.0, which includes libhpnp, to cj-overlay. However, kio-upnp-ms needs herqq-0.0.0 (svn r55).
(In reply to comment #2) > After some research I found out that it needs the mediaserver ioslave from > http://gitorious.org/kio-upnp-ms to work. Unfortunately there isn't an ebuild > for this one in portage, would be great if someone could add this. You are a lucky guy, kio-upnp-ms has moved to https://projects.kde.org/projects/playground/base/kio-upnp-ms and the live version builds with media-libs/herqq-0.8.0. I added both ebuilds to cj-overlay, so happy testing. Then you are left with finding the UUID of your upnp server you can use net-dns/cagibi for that like suggest here: http://kodeclutz.blogspot.com/2010/10/upnp-mediaserver-kio-slave-is-out.html However, in my case cagibi could not detect the UUID :-(
Thanks a lot, I just tried it and kind of works. It finds my mediaserver and shows an entry in the local collection with the line "counting" underneath it. After a while it crashes with a segfault. It looks like it tries to count all the songs on the server, which could take ages (ca. 6000 songs) and then gives up. Probably a not a Gentoo bug.
(In reply to comment #6) > Thanks a lot, I just tried it and kind of works. It finds my mediaserver and > shows an entry in the local collection with the line "counting" underneath it. > After a while it crashes with a segfault. It looks like it tries to count all > the songs on the server, which could take ages (ca. 6000 songs) and then gives > up. Probably a not a Gentoo bug. > Did you had to do something in Amarok else? My local collection shows 0 tracks :-(
I've got 2 media servers at home, one is on my buffalo linkstation and is a twonky server I believe. The second one is on my samsung bluray player and is probably proprietary. Both are seen by amarok (or kio-upnp-ms), but the first one (twonky) stays on status "counting" and the second one says 0 songs (there are songs on it though and can be seen by other dlna devices, like my ipod touch). If I start amarok with -debug, I can see that it send like hundreds of requests to the first media server. it looks like as if it tries to get all information about every album and artist to build the collection. Fisrt of all, this could take ages and second of all, it crashes in the end. The upnp-collection should be build lazily, click on artists and then get the artists etc. not all at the same time. I doubt this has anything to do with gentoo, this is probably up to the amarok devs to improve/fix. I also have cagibi installed, which I believe is used by kio-upnp-ms to look up the ids of the media servers.
In the end I got it working for me as well ;-) I have added kio-upnp-ms to tree. @jmbsvicetto: I leave it to you, if want to add upnp as a useflag to amarok.
(In reply to comment #9) > In the end I got it working for me as well ;-) > > I have added kio-upnp-ms to tree. Thanks for taking care of the deps. > @jmbsvicetto: I leave it to you, if want to add upnp as a useflag to amarok. I'll try to add it this weekend.
(In reply to comment #10) > > @jmbsvicetto: I leave it to you, if want to add upnp as a useflag to amarok. > I'll try to add it this weekend. If you do so, we should think about making upnp a global use flag. rhythmbox, totem and vlc have it as well. For media-video/ushare it is called dlna, which is actually related.
(In reply to comment #11) > (In reply to comment #10) > > > @jmbsvicetto: I leave it to you, if want to add upnp as a useflag to amarok. > > I'll try to add it this weekend. > If you do so, we should think about making upnp a global use flag. > rhythmbox, totem and vlc have it as well. For media-video/ushare it is called > dlna, which is actually related. I've added a testing amarok-2.4.0.90 ebuild to the tree with an upnp use flag to test the HUpnp support. I'll update the patch to ensure it can find the include dir in a few minutes.
I've added the ~amd64 ~x86 keywords to the ebuild. Please test and open a new bug if you find any issues.