-
Notifications
You must be signed in to change notification settings - Fork 5
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
Player discovery doesn't appear to work #7
Comments
It would be better to be just falling back to JmDNS for older androids, like https://github.com/dongyunli/zeroService, but I use Mupeace on 4.4.4 as well as Jelly Bean and Gingerbread. There are JmDNS updates I can try as well as android.net.nsd, but I'm struggling to guess where the issue is or how to debug it, so those would be shots in the dark. Would you be able to check logcat for errors or warnings around the time of opening the view? Thanks for posting the above details. |
https://github.com/eisnerd/dmix/raw/c83aec8aea9aca5f9bc1d94710ca4a8ed84d5010/Mupeace-debug.apk has an update JmDNS, in case it makes any difference. On a quick try it seems worse to me, actually. |
logcat doesn't seem to have anything when opening the player discovery:
(It does freeze for maybe two seconds after returning...) I tried |
https://github.com/eisnerd/dmix/raw/downloads/Mupeace-debug.apk now has a build with mdnsjava instead of JmDNS. It's loads faster for me and more likely to get bug fixes if that's where the problem lies. |
Yes, this version does work. (Though it shows |
(I also tested whether the player list updates automatically; if I start mpd, it shows up in the list instantly, but does not disappear when stopped. So after a few mpd restarts, I had four identical player entries. It's not really an issue though.) |
Ah. It should update. I switched to a CopyOnWriteArrayList, but the deletes were done through an iterator and, "Element-changing operations on iterators themselves (remove, set, and add) are not supported." Thanks for testing this. I hadn't even bothered to try that. |
If I'm understanding the UI correctly, opening the "Players" screen should list all discovered players in the LAN. However, it shows nothing at all, besides the title.
I have both Avahi and mpd running on my laptop (3rd line):
But the only mDNS queries the laptop receives are for
_googlecast._tcp
services.I noticed the app has its own mDNS library. Maybe it conflicts with Android's built-in mDNS support? (I'm running 4.4.4 on Nexus 5.)
The text was updated successfully, but these errors were encountered: