|
YAACC - UPNP Client and Server
|
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...


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