|
YAACC - UPNP Client and Server
|
Makes the SnapcastFeedController of a player: wires one controller to the link that SnapcastReceivers holds for the group's server.
More...

Public Member Functions | |
| SnapcastFeedSessions (SnapcastReceivers receivers, SnapcastStreams.MarkerStore markerStore, RetryScheduler scheduler, FeedOutputFactory outputs) | |
| SnapcastFeedSessions (SnapcastReceivers receivers, SnapcastStreams.MarkerStore markerStore, RetryScheduler scheduler, FeedOutputFactory outputs, java.util.function.Function< ServerKey, String > codecFor) | |
| SnapcastFeedController | newController (SnapcastGroupDevice group, String phoneName, SnapcastFeedController.Listener listener) |
| A controller for playing into one group. | |
| int | openControllers () |
| The controllers that were made and whose release has not finished (a release gives the group its stream back). | |
Makes the SnapcastFeedController of a player: wires one controller to the link that SnapcastReceivers holds for the group's server.
The link is retained for the life of the controller (so the control connection stays up while the player exists, also without a visible page) and let go when the controller is released. All controllers of an app share one FeedSlots, so a second group of the same server is refused (BUSY) while the first is fed, and one marker store, so every stream of this phone carries the same marker.
Pure Java; the Android parts (the marker's preferences, the phone name) come in from the hub.
| de.yaacc.snapcast.SnapcastFeedSessions.SnapcastFeedSessions | ( | SnapcastReceivers | receivers, |
| SnapcastStreams.MarkerStore | markerStore, | ||
| RetryScheduler | scheduler, | ||
| FeedOutputFactory | outputs, | ||
| java.util.function.Function< ServerKey, String > | codecFor ) |
| codecFor | the codec that a server sends the stream of this phone in (the settings; FLAC, PCM or Opus) |
| SnapcastFeedController de.yaacc.snapcast.SnapcastFeedSessions.newController | ( | SnapcastGroupDevice | group, |
| String | phoneName, | ||
| SnapcastFeedController.Listener | listener ) |
A controller for playing into one group.
The caller must call SnapcastFeedController#release() when the player ends: it gives the link back and ends the controller's worker.
| phoneName | the name of this phone, from the same source as the UPnP server name; it is cut down for the stream name by SnapcastStreams |
Referenced by de.yaacc.snapcast.SnapcastFeedSessions.newController(), and de.yaacc.snapcast.SnapcastHub.newFeedController().

