|
YAACC - UPNP Client and Server
|
What SnapcastFeedController needs from the stream handling of one server: SnapcastStreams in the app, a fake in a test.
More...


Public Member Functions | |
| 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(). | |
What SnapcastFeedController needs from the stream handling of one server: SnapcastStreams in the app, a fake in a test.
All calls except noteAudio() block (they make control calls): the controller makes them on its worker only.
| SnapcastStreams.EnsureResult de.yaacc.snapcast.feed.FeedStreams.ensure | ( | ) |
Makes sure YAACC's stream exists on the server; see SnapcastStreams#ensure().
Implemented in de.yaacc.snapcast.feed.LinkBoundStreams, and de.yaacc.snapcast.feed.SnapcastStreams.
| void de.yaacc.snapcast.feed.FeedStreams.noteAudio | ( | ) |
Audio was written: restarts the idle timer.
Cheap, any thread.
Implemented in de.yaacc.snapcast.feed.LinkBoundStreams, and de.yaacc.snapcast.feed.SnapcastStreams.
| SnapcastStreams.ReleaseResult de.yaacc.snapcast.feed.FeedStreams.release | ( | String | groupId | ) |
Puts a group back on the stream it played before; see SnapcastStreams#release.
Implemented in de.yaacc.snapcast.feed.LinkBoundStreams, and de.yaacc.snapcast.feed.SnapcastStreams.
| boolean de.yaacc.snapcast.feed.FeedStreams.removeIfIdle | ( | ) |
Removes the stream if no audio was noted for the idle timeout; see SnapcastStreams#removeIfIdle().
Implemented in de.yaacc.snapcast.feed.LinkBoundStreams, and de.yaacc.snapcast.feed.SnapcastStreams.
| boolean de.yaacc.snapcast.feed.FeedStreams.shutdown | ( | ) |
Gives every group its previous stream back and removes the stream; see SnapcastStreams#shutdown().
Implemented in de.yaacc.snapcast.feed.LinkBoundStreams, and de.yaacc.snapcast.feed.SnapcastStreams.
| SnapcastStreams.UseResult de.yaacc.snapcast.feed.FeedStreams.useFor | ( | String | groupId | ) |
Lets a group play the stream and remembers what it played before; see SnapcastStreams#useFor.
Implemented in de.yaacc.snapcast.feed.LinkBoundStreams, and de.yaacc.snapcast.feed.SnapcastStreams.