public abstract class LibJitsi extends Object
The start() method is to be called to initialize/start the use of
the library. Respectively, the stop() method is to be called to
uninitialize/stop the use of the library (i.e. to release the resources
acquired by the library during its execution). The getXXXService()
methods may be called only after the start() method returns
successfully and before the stop() method is called.
The libjitsi library may be utilized both with and without OSGi. If the library detects during the execution of the start() method that (a) the LibJitsi class has been loaded as part of an OSGi Bundle and (b) successfully retrieves the associated BundleContext, it will look for the references to the implementations of the supported service classes in the retrieved BundleContext. Otherwise, the library will stand alone without relying on OSGi functionality. In the case of successful detection of OSGi, the library will not register the supported service class instances in the retrieved BundleContext.
| Modifier | Constructor and Description |
|---|---|
protected |
LibJitsi()
Initializes a new LibJitsi instance.
|
| Modifier and Type | Method and Description |
|---|---|
static AudioNotifierService |
getAudioNotifierService()
Gets the AudioNotifierService instance.
|
static org.jitsi.service.configuration.ConfigurationService |
getConfigurationService()
Gets the ConfigurationService instance.
|
static FileAccessService |
getFileAccessService()
Gets the FileAccessService instance.
|
static MediaService |
getMediaService()
Gets the MediaService instance.
|
static PacketLoggingService |
getPacketLoggingService()
Gets the PacketLoggingService instance.
|
static ResourceManagementService |
getResourceManagementService()
Gets the ResourceManagementService instance.
|
protected abstract <T> T |
getService(Class<T> serviceClass)
Gets a service of a specific type associated with this implementation of
the libjitsi library.
|
static void |
start()
Starts/initializes the use of the libjitsi library.
|
static void |
stop()
Stops/uninitializes the use of the libjitsi library.
|
public static AudioNotifierService getAudioNotifierService()
public static org.jitsi.service.configuration.ConfigurationService getConfigurationService()
public static FileAccessService getFileAccessService()
public static MediaService getMediaService()
public static PacketLoggingService getPacketLoggingService()
public static ResourceManagementService getResourceManagementService()
public static void start()
public static void stop()
protected abstract <T> T getService(Class<T> serviceClass)
serviceClass - the type of the service to be retrievedCopyright © 2021 jitsi.org. All rights reserved.