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

The streams of a server as the choices of a group's stream picker. More...

Collaboration diagram for de.yaacc.snapcast.ui.SnapcastStreamChoices:
Collaboration graph

Classes

class  Choice
 One stream of the picker.
 
enum  Reason
 Why a stream can not be chosen. More...
 

Static Public Member Functions

static List< Choice > of (SnapcastServerStatus status, String groupId, String marker)
 
static boolean isOwnFeed (String streamId, String marker)
 True when the stream name is YAACC <phone name> <marker> with this install's marker.
 

Detailed Description

The streams of a server as the choices of a group's stream picker.

Pure.

The label of a stream is its id cleaned as display text (the id of a stream is its name); the raw id is kept for the call that sets it, and only for that. A stream that the server has switched off (disabled) can not be chosen; the stream the group plays now needs no change; YAACC's own feed stream of this phone is marked (its name is YAACC <phone name> <marker>), so that a user does not mistake it for a music source.

Member Function Documentation

◆ isOwnFeed()

static boolean de.yaacc.snapcast.ui.SnapcastStreamChoices.isOwnFeed ( String streamId,
String marker )
static

True when the stream name is YAACC <phone name> <marker> with this install's marker.

A name that only ends with the marker, or that has the prefix without the marker, is not ours.

Referenced by de.yaacc.snapcast.ui.SnapcastStreamChoices.of().

Here is the caller graph for this function:

◆ of()

static List< Choice > de.yaacc.snapcast.ui.SnapcastStreamChoices.of ( SnapcastServerStatus status,
String groupId,
String marker )
static
Parameters
statusthe server's status; null gives an empty list
markerthe marker of this install in YAACC's stream names, or null when none was made yet
Returns
the choices in the server's order; empty when the group or the status is missing, or there is no stream
Here is the call graph for this function:

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