|
YAACC - UPNP Client and Server
|
SnapcastStreams follows the control connection it was made for: a player is created before the connection of its server is certain to exist (the receivers close it when no page is visible), and a connection object can be replaced.
More...


Public Member Functions | |
| LinkBoundStreams (FeedOperationsSource source, String phoneName, SnapcastStreams.MarkerStore markerStore) | |
| LinkBoundStreams (FeedOperationsSource source, String phoneName, SnapcastStreams.MarkerStore markerStore, java.util.function.Supplier< String > codec) | |
| SnapcastStreams.EnsureResult | ensure () |
Makes sure YAACC's stream exists on the server; see SnapcastStreams#ensure(). | |
| SnapcastStreams.UseResult | useFor (String groupId) |
Lets a group play the stream and remembers what it played before; see SnapcastStreams#useFor. | |
| SnapcastStreams.ReleaseResult | release (String groupId) |
Puts a group back on the stream it played before; see SnapcastStreams#release. | |
| void | noteAudio () |
| Audio was written: restarts the idle timer. | |
| boolean | removeIfIdle () |
Removes the stream if no audio was noted for the idle timeout; see SnapcastStreams#removeIfIdle(). | |
| boolean | shutdown () |
Gives every group its previous stream back and removes the stream; see SnapcastStreams#shutdown(). | |
Public Member Functions inherited from de.yaacc.snapcast.feed.FeedStreams | |
SnapcastStreams follows the control connection it was made for: a player is created before the connection of its server is certain to exist (the receivers close it when no page is visible), and a connection object can be replaced.
This makes the stream handling when the first call needs it, and makes a new one when the control calls come from another connection object. While there is none every call answers "no" (a typed result, never an exception): ensure() fails, the group is not moved, nothing is removed.
The marker of the stream name comes from the same SnapcastStreams.MarkerStore for every instance, so a replaced instance still finds (and adopts) its own stream. The records of the groups that the old instance moved are lost with it; the group then stays on YAACC's stream until somebody moves it, which is the price of a replaced connection.
| de.yaacc.snapcast.feed.LinkBoundStreams.LinkBoundStreams | ( | FeedOperationsSource | source, |
| String | phoneName, | ||
| SnapcastStreams.MarkerStore | markerStore, | ||
| java.util.function.Supplier< String > | codec ) |
| codec | the codec that the server sends the stream in, asked for when the stream is made |
| SnapcastStreams.EnsureResult de.yaacc.snapcast.feed.LinkBoundStreams.ensure | ( | ) |
Makes sure YAACC's stream exists on the server; see SnapcastStreams#ensure().
Implements de.yaacc.snapcast.feed.FeedStreams.

| void de.yaacc.snapcast.feed.LinkBoundStreams.noteAudio | ( | ) |
Audio was written: restarts the idle timer.
Cheap, any thread.
Implements de.yaacc.snapcast.feed.FeedStreams.

| SnapcastStreams.ReleaseResult de.yaacc.snapcast.feed.LinkBoundStreams.release | ( | String | groupId | ) |
Puts a group back on the stream it played before; see SnapcastStreams#release.
Implements de.yaacc.snapcast.feed.FeedStreams.

| boolean de.yaacc.snapcast.feed.LinkBoundStreams.removeIfIdle | ( | ) |
Removes the stream if no audio was noted for the idle timeout; see SnapcastStreams#removeIfIdle().
Implements de.yaacc.snapcast.feed.FeedStreams.

| boolean de.yaacc.snapcast.feed.LinkBoundStreams.shutdown | ( | ) |
Gives every group its previous stream back and removes the stream; see SnapcastStreams#shutdown().
Implements de.yaacc.snapcast.feed.FeedStreams.

| SnapcastStreams.UseResult de.yaacc.snapcast.feed.LinkBoundStreams.useFor | ( | String | groupId | ) |
Lets a group play the stream and remembers what it played before; see SnapcastStreams#useFor.
Implements de.yaacc.snapcast.feed.FeedStreams.
