|
YAACC - UPNP Client and Server
|
The phone as a Sendspin player (use case P1): a foreground service that, while the switch Let servers play on this phone is on, keeps a listening socket (port 8928, path /sendspin) and announces the phone as _sendspin._tcp; a server that dials it is handed to a SendspinPlayerHost.
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 switch is on, stops it if it is off. | |
| static String | phoneName (android.content.Context context) |
| The name of this phone as a player, for the card and the announcement. | |
The phone as a Sendspin player (use case P1): a foreground service that, while the switch Let servers play on this phone is on, keeps a listening socket (port 8928, path /sendspin) and announces the phone as _sendspin._tcp; a server that dials it is handed to a SendspinPlayerHost.
The wake lock and the Wi-Fi lock are held only while a stream plays. Only addresses of the local network are accepted, never the phone's own. Started and stopped by sync.
|
static |
Starts the service if the switch is on, stops it if it is off.
Call from the main thread (an action of the user or the app start).
