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

A simple local upnp server implementation. More...

Inheritance diagram for de.yaacc.upnp.server.YaaccUpnpServerService:
Inheritance graph
Collaboration diagram for de.yaacc.upnp.server.YaaccUpnpServerService:
Collaboration graph

Classes

class  YaaccUpnpServerServiceBinder
 

Public Member Functions

IBinder onBind (Intent intent)
 
void onCreate ()
 
int onStartCommand (Intent intent, int flags, int startId)
 
void onDestroy ()
 
void onTaskRemoved (Intent rootIntent)
 
void updateNotification ()
 Update notification with current server status.
 
void onSharedPreferenceChanged (SharedPreferences sharedPreferences, String key)
 
NetworkDeviceListener getNetworkDeviceListener ()
 
Registry getRegistry ()
 
void onNetworkStateChange ()
 
boolean isInitialized ()
 
boolean acquireLiveCapture (boolean audio)
 A share of the live stream needs the capture: it is started if it is not running (the permission of the system must be there, see MediaProjectionHelper).
 
void releaseLiveCapture (boolean audio)
 The share does not need the capture any more: it stops unless the stream setting of the server card keeps it.
 
SystemAudioCaptureService getAudioCapture ()
 
ScreenCastCaptureService getVideoCapture ()
 
CombinedCaptureService getCombinedCapture ()
 
void restartServer ()
 

Public Attributes

String locaDeviceUuid
 

Static Public Attributes

static final String PROXY_LINK_KEY_PREFIX = "proxy_link_"
 Only for removing the settings an earlier version wrote (links shared through the media proxy); nothing reads or writes such settings any more.
 
static final String PROXY_PATH = "proxy"
 
static final String SAF_PATH = "saf"
 
static final int LOCK_TIMEOUT = 5000
 
static int PORT = 49157
 
static ServiceType[] EXCLUSIVE_SERVER_TYPES
 

Protected Attributes

IBinder binder = new YaaccUpnpServerServiceBinder()
 

Detailed Description

A simple local upnp server implementation.

This class encapsulate the creation and registration of local upnp services. it is implemented as a android service in order to run in background

Author
Tobias Schoene (openbit)

Member Function Documentation

◆ acquireLiveCapture()

boolean de.yaacc.upnp.server.YaaccUpnpServerService.acquireLiveCapture ( boolean audio)

A share of the live stream needs the capture: it is started if it is not running (the permission of the system must be there, see MediaProjectionHelper).

Independent of the stream settings of the server card: the capture also runs for a share when those are off. Every successful call needs its releaseLiveCapture.

Returns
true if the capture is running

Referenced by de.yaacc.upnp.UpnpClient.createLiveStreamShare().

Here is the caller graph for this function:

Member Data Documentation

◆ EXCLUSIVE_SERVER_TYPES

ServiceType [] de.yaacc.upnp.server.YaaccUpnpServerService.EXCLUSIVE_SERVER_TYPES
static
Initial value:
= new ServiceType[]{
new UDAServiceType("AVTransport"),
new UDAServiceType("ContentDirectory"),
new UDAServiceType("ConnectionManager"),
new UDAServiceType("RenderingControl"),
new UDAServiceType("X_MS_MediaReceiverRegistrar"),
new ServiceType(ClingOhControl.NAMESPACE, "Product", 1),
new ServiceType(ClingOhControl.NAMESPACE, "Playlist", 1),
new ServiceType(ClingOhControl.NAMESPACE, "Info", 1),
new ServiceType(ClingOhControl.NAMESPACE, "Time", 1),
new ServiceType(ClingOhControl.NAMESPACE, "Volume", 1)}

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