YAACC - UPNP Client and Server
Loading...
Searching...
No Matches
de.yaacc.sendspin.player.SendspinPlayerService Class Reference

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

Inheritance diagram for de.yaacc.sendspin.player.SendspinPlayerService:
Inheritance graph
Collaboration diagram for de.yaacc.sendspin.player.SendspinPlayerService:
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 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.
 

Detailed Description

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.

Member Function Documentation

◆ sync()

static void de.yaacc.sendspin.player.SendspinPlayerService.sync ( Context context)
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).

Here is the call graph for this function:

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