-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bind to device page doesn't seem to work properly #4
Comments
OK, so, in firefox, when I pull up the list of remote devices, even though plexdlnaplayer has 3 devices, I only see one of the three. If I watch the network, your code responds with GDM responses for all 3 devices that I have, in order. What I've discovered, is that the web player only "sees" the last one to respond.. meaning, if plexdlnaplayer replies with "Device A", "Device B", "Device C" in order, only C is seen. If I restart it, and the order changes, say to B,C,A it only sees "A". My phone however, is totally random. It will see 2-3 devices sometimes, and most of the time none. Plexamp never sees them. Interestingly, plexamp sees my mobile devices all the time, pretty much religiously, so, there is a difference there, I'm not sure what.. tcpdump from a mobile device running the plex app.
Tcpdump from the DLNA player (I added Updated-At:, which seems to help a little bit..)
|
OK, I now understand the bind to devices page better. You have to go to plex.tv, input the code, then immediately go back to the devices page, and click check linked. Unless you do this, it does not save the pin state to data.json. after doing that, suddenly plexamp can see them. |
The other problem I'm having, also has to do with multi-devices. When you pick a remote player in android, it sends the following to plexdlnaplayer: GET /resources?X-Plex-Language=en-us HTTP/1.1 Which it 404's because it doesn't include a specific device. I think, the client here is expecting a list of devices, as seen: What I'm unsure about, is what the proper uuid to return in the header would be. We are getting the uuid from each of the devices, so.. hrmm. Part of me thinks the whole thing should fire up a separate web UI for each device, and just report the singular uuid and device in that one UI, so you have multiple ports, not just the 32448 one, like a range of ports. Maybe I'll try to implement that instead. |
Also, just writing this one down for notes: The android client sends over when it starts/wakes up: M-SEARCH * HTTP/1.1 |
an Ipad sends the following, just for notes again: |
I think I have this all working now in my res_fixes branch, need a bit more testing, then will PR a fix. |
Wow, you've done a lot work here. I'm sorry for the late response. I'm giving all my spare time to snowboarding lately. I didn't test any android devices and am surprised that they behave differently from the iOS devices. I don't think firing up a separate web server for every DLNA device will be a good idea, unless necessary. A separated web server will need its separated resource, firing too many web servers up will slow down the entire server. Is there a way to return a list of devices? Since you already have some ideas, I'll just wait for your PR and do some tests. |
No problem, thanks for taking a look.
My solution was to fire up multiple tasks of the fastapi server, but have them all share the same DLNA data and backend, so each device is tied to a unique port. It doesn't really seem to use that much more resources than the single one. Maybe I can get some final testing in today, and PR something for you to look at. Thanks for your work on this though, it's given me hope for having all these speakers work. I'm inches away from my ideal setup here. :) |
Sorry for surfacing an old issue, but @garbled1, any luck with getting things to work? I'm basically in the same boat. I can't play to any of the DLNA renderers and I suspect it is because there are multiple. As you noted in Plex Web, I see only one random one, and it even sometimes works. Once I navigate to the bind page (took me forever to figure this part out...anyone reading this, navigate to http://: with port PROBABLY being 34288, link to the device, AND come back and click Verify), I can SEE the two devices in PlexAmp. But I can't switch to either of them. Same behavior on Windows, iOS and Android. |
With the patch in my PR, I'm able to connect to my HEOS, and play music to them. However I have two strange problems:
Sometimes the devices show up on the list of remote playable things, sometimes they don't, it's kinda random and per-player. Sometimes only one of my Heos devices show up, sometimes all three.
On the link webpage, it always shows them as unlinked. Is the linking persistent across restarts of the application? Even if I go and link one, when I reload the bind devices page, it shows everything unlinked, even if I'm currently playing to that device.
The text was updated successfully, but these errors were encountered: