|
YAACC - UPNP Client and Server
|
The FCast receivers of the lists: the directory's entries as devices, and the memory of the selected ones. More...


Public Member Functions | |
| FCastReceivers (FCastDirectory directory, Supplier< FCastReceiverDevice.Labels > labels, FCastStoredReceivers remembered) | |
| void | restore () |
| Puts the remembered receivers of the last run into the directory. | |
| synchronized List< FCastReceiverDevice > | receivers () |
| The receivers as of now: discovered, typed in and remembered ones, sorted by name. | |
| synchronized FCastReceiverDevice | findReceiver (String receiverId) |
| void | selectionChanged (Collection< String > receiverIds) |
| The stored selection changed (the ids of all selected receivers, of any kind): remember the selected FCast receivers across a restart, forget the others. | |
Public Member Functions inherited from de.yaacc.fcast.discovery.FCastReceiverSource | |
Additional Inherited Members | |
Public Attributes inherited from de.yaacc.fcast.discovery.FCastReceiverSource | |
| FCastReceiverSource | NONE |
| No receivers; the default of a client that has no hub. | |
The FCast receivers of the lists: the directory's entries as devices, and the memory of the selected ones.
Pure (the Android parts are in FCastHub).
Why remember. Receivers found by mDNS exist only while a scan runs, but a selected receiver must survive a restart (the app drops a selected id that no device matches). So the selected FCast receivers (their address and name) are stored when the selection changes and put into the directory as remembered entries at the next start: they are listed as offline until the network announces them, and a play to one simply tries to connect.
| synchronized FCastReceiverDevice de.yaacc.fcast.discovery.FCastReceivers.findReceiver | ( | String | receiverId | ) |
fcast:...), or null if it is not known (any more) Implements de.yaacc.fcast.discovery.FCastReceiverSource.

| synchronized List< FCastReceiverDevice > de.yaacc.fcast.discovery.FCastReceivers.receivers | ( | ) |
The receivers as of now: discovered, typed in and remembered ones, sorted by name.
Cheap: no network.
Implements de.yaacc.fcast.discovery.FCastReceiverSource.

| void de.yaacc.fcast.discovery.FCastReceivers.restore | ( | ) |
Puts the remembered receivers of the last run into the directory.
Call once at the start.

| void de.yaacc.fcast.discovery.FCastReceivers.selectionChanged | ( | Collection< String > | receiverIds | ) |
The stored selection changed (the ids of all selected receivers, of any kind): remember the selected FCast receivers across a restart, forget the others.
Does not block on the network.
Implements de.yaacc.fcast.discovery.FCastReceiverSource.
