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

The built-in Snapcast server as a foreground service (issue #330, task 4.1): it opens the stream port (1704) and the control port (1705), announces them by mDNS and keeps the state over a restart. More...

Inheritance diagram for de.yaacc.snapcast.server.SnapcastServerService:
Inheritance graph
Collaboration diagram for de.yaacc.snapcast.server.SnapcastServerService:
Collaboration graph

Public Member Functions

IBinder onBind (Intent intent)
 
int onStartCommand (Intent intent, int flags, int startId)
 
void onDestroy ()
 

Static Public Member Functions

static void sync (Context context)
 Starts the service if the server runs (support, services and its switch, de.yaacc.snapcast.SnapcastSettings#serverRuns), stops it if not.
 

Detailed Description

The built-in Snapcast server as a foreground service (issue #330, task 4.1): it opens the stream port (1704) and the control port (1705), announces them by mDNS and keeps the state over a restart.

It runs only while the switch in the settings is on (off by default, rule S1) and is never restarted by the system. The listeners take only local-network addresses (S2). The CPU and the Wi-Fi are held awake only while a stream plays for a connected client, not just because the server is on.

Member Function Documentation

◆ sync()

static void de.yaacc.snapcast.server.SnapcastServerService.sync ( Context context)
static

Starts the service if the server runs (support, services and its switch, de.yaacc.snapcast.SnapcastSettings#serverRuns), stops it if not.

Call from the main thread (an action of the user or the app start).

Referenced by de.yaacc.snapcast.SnapcastServices.install().

Here is the caller graph for this function:

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