YAACC - UPNP Client and Server
Loading...
Searching...
No Matches
de.yaacc.snapcast.SnapcastFeedSessions Class Reference

Makes the SnapcastFeedController of a player: wires one controller to the link that SnapcastReceivers holds for the group's server. More...

Collaboration diagram for de.yaacc.snapcast.SnapcastFeedSessions:
Collaboration graph

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

Detailed Description

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.

Constructor & Destructor Documentation

◆ SnapcastFeedSessions()

de.yaacc.snapcast.SnapcastFeedSessions.SnapcastFeedSessions ( SnapcastReceivers receivers,
SnapcastStreams.MarkerStore markerStore,
RetryScheduler scheduler,
FeedOutputFactory outputs,
java.util.function.Function< ServerKey, String > codecFor )
Parameters
codecForthe codec that a server sends the stream of this phone in (the settings; FLAC, PCM or Opus)

Member Function Documentation

◆ newController()

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.

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

Here is the call graph for this function:
Here is the caller graph for this function:

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