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

An audio source of the server. More...

Collaboration diagram for de.yaacc.snapcast.control.SnapcastStream:
Collaboration graph

Public Member Functions

 SnapcastStream (String id, String status, String rawUri, String scheme, String host, int port, String path, Map< String, String > query)
 
String getId ()
 
String getStatus ()
 idle, playing or what the server says; unknown when it says nothing.
 
String getRawUri ()
 
String getScheme ()
 
String getHost ()
 The host part of uri.host, empty for a pipe or file source.
 
int getPort ()
 The port part of uri.host, or -1 when there is none.
 
String getPath ()
 
Map< String, String > getQuery ()
 The query of the URI (at most 32 entries), unmodifiable.
 
String getQueryParameter (String name)
 
boolean equals (Object other)
 
int hashCode ()
 
String toString ()
 Fixed words only: status and scheme are text of the server (up to 1 KiB, may hold line breaks or addresses).
 

Detailed Description

An audio source of the server.

getHost() and getPort() come from the uri.host field, which the server fills with host and port together (for example 0.0.0.0:4953). The values are what the server reports: they are for matching and display, never a place to connect to. Immutable.

Member Function Documentation

◆ getQueryParameter()

String de.yaacc.snapcast.control.SnapcastStream.getQueryParameter ( String name)
Returns
the value of a query parameter, or null

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