YAACC - UPNP Client and Server
Loading...
Searching...
No Matches
de.yaacc.snapcast.feed.FeedStreams Interface Reference

What SnapcastFeedController needs from the stream handling of one server: SnapcastStreams in the app, a fake in a test. More...

Inheritance diagram for de.yaacc.snapcast.feed.FeedStreams:
Inheritance graph
Collaboration diagram for de.yaacc.snapcast.feed.FeedStreams:
Collaboration graph

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().
 

Detailed Description

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.

Member Function Documentation

◆ ensure()

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.

◆ noteAudio()

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.

◆ release()

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.

◆ removeIfIdle()

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.

◆ shutdown()

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.

◆ useFor()

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.


The documentation for this interface was generated from the following file: