-
Notifications
You must be signed in to change notification settings - Fork 7
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
Implement backend discovery via SSDP #178
Comments
#231 Re-discovering the backend in case of connection problems (e.g. reinstalled with a different IP) would be nice, too. |
I envision discovery happening every time the application loads and either
updates the shared preferences or leaves it as is if it is unchanged, then
you proceed to the main interface. The big question would be those users
who have multiple master backends on the network. I know in most cases,
there will be just 1. But there are uses like @billmeek who runs a main
system based on the latest release and also a system based on the git
head. He can clarify his setup further.
…On Mon, Jan 23, 2017 at 3:11 PM Karl Dietz ***@***.***> wrote:
#231 <#231>
Re-discovering the backend in case of connection problems (e.g. reinstalled
with a different IP) would be nice, too.
—
You are receiving this because you were assigned.
Reply to this email directly, view it on GitHub
<#178 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AA5yzP8oZ6aBxMBvAdtaQsoRmsoGaynqks5rVQlngaJpZM4IxNt1>
.
|
I've even had an old box running 25, 26, 27 and 28 (doesn't Recall that there were one, or a few, users that didn't want @dekarl take a peek at #231. Not the automatic solution, |
@dekarl its a start ^^^ |
@dmfrey you already predicted the 1st issue. I deleted the data for this app Then when I stopped/started the app, it worked, but selected the backend running on Looking in LogCat with a pattern of nsd, I came up with this:
and note that my production BE's IP is there (192.168.1.204) but my office IP .200 |
@billmeek It sounds like whenever each sends out a broadcast, we get an event per backend. I am open to options on how to handle this. |
Another edge case. Stop the app, delete data, turn Wi-Fi off. Start the app and the screenshot below appears. Pressing the back If Wi-Fi is turned on, while on the screen below, the app takes off as In this case, my 192.168.1.204 showed up AFTER my .200 address |
We should come up with a few rules around this.
I am open to other questions/options as well |
Replying to the earlier question about " an event per backend": @dmfrey I'd suggest a screen that presents the user Or, at least a message that says multiple BEs were |
Getting tougher. I turned up my slave backend and now see the following:
The .221 address being the slave (and there's no indication with the ZeroConf Browser app In 0.26:
was returned. In 0.27 and beyond:
is returned. This is partially good. When I turn on my 0.2[678], 29-pre host, the 0.26 |
Now to take a stab at @dmfrey's earlier questions:
Probably not. Not for me with an unusual number of backends, but especially This conflicts with @dekarl's case (above) where a BE's IP has changed and For most users, having a pop-up alerting them that another BE has
That may be a better solution. It's what the Mythtv Android Frontend did
I'd prefer that. If so, then the IP as well as the returned name should be
Again, conflicts with the "only the BE's IP changed" case. But yes, |
Note that the backend's build information will tell you
|
A little Wireshark. Note the presence of the TXT below
|
I'm not pushing the following because it only works if the
But one point is clear, ZeRXconf.startDiscovery needs the true argument to Ref. Section 6.4 here: http://files.dns-sd.org/draft-cheshire-dnsext-dns-sd.txt |
This is going to move to the preferences menu Changes #178
It would be very nice to automagically configure the backend connection in local network environments iff the backend URL contains the default value and only one backend is found via SSDP.
E.g. search for deviceType urn:schemas-mythtv-org:device:MasterMediaServer:1, then use the URL base for the backend connection (see http://www.upnp-database.info/device.jsp?deviceId=812 for an example)
Android Network Discovery Documentation
https://developer.android.com/training/connect-devices-wirelessly/nsd.html
The text was updated successfully, but these errors were encountered: