Package com.theoplayer.android.api
Interface THEOplayerGlobal
-
- All Implemented Interfaces:
public interface THEOplayerGlobalThe THEOplayer related operations which are not tied to a particular THEOplayerView.
-
-
Method Summary
Modifier and Type Method Description static THEOplayerGlobalgetSharedInstance(@NonNull() Context context)A THEOplayerGlobal instance. abstract CachegetCache()The cache. abstract SslSettingsgetSsl()The settings of the Secure Socket Layer. abstract LoggergetLogger()The Logger API that can be used to gather more information on the player internal behaviour. abstract voidsetApplicationInstance(@NonNull() Application application)Sets the Application instance. abstract voidregisterContentProtectionIntegration(@NonNull() String integrationId, @NonNull() KeySystemId keySystemId, @NonNull() ContentProtectionIntegrationFactory integrationFactory)Register a ContentProtectionIntegrationFactory for a specific integration id and a specific keySystem. static StringgetVersion()The THEOplayer version used. -
-
Method Detail
-
getSharedInstance
@NonNull() static THEOplayerGlobal getSharedInstance(@NonNull() Context context)
A THEOplayerGlobal instance.
- Parameters:
context- The Activity context.- Returns:
A THEOplayerGlobal instance. (NonNull)
-
getCache
@NonNull() abstract Cache getCache()
The cache.
- Returns:
A reference to the cache. (Nullable)
-
getSsl
@NonNull() abstract SslSettings getSsl()
The settings of the Secure Socket Layer.
- Returns:
The settings of the Secure Socket Layer. (NonNull)
-
getLogger
@NonNull() abstract Logger getLogger()
The Logger API that can be used to gather more information on the player internal behaviour.
- Recommended to be only used in debug mode or for specific use cases.
- Returns:
The Logger API. (NonNull)
-
setApplicationInstance
abstract void setApplicationInstance(@NonNull() Application application)
Sets the Application instance.
- Parameters:
application- The reference to the Application.
-
registerContentProtectionIntegration
abstract void registerContentProtectionIntegration(@NonNull() String integrationId, @NonNull() KeySystemId keySystemId, @NonNull() ContentProtectionIntegrationFactory integrationFactory)
Register a ContentProtectionIntegrationFactory for a specific integration id and a specific keySystem.
- Parameters:
integrationId- The name of the integration which is being defined.keySystemId- The name of the DRM key system to be used.integrationFactory- The factory to get an implementation of ContentProtectionIntegration.
-
getVersion
static String getVersion()
The THEOplayer version used.
Example:
- "2.67.0"
- Since:
v3.5.0
-
-
-
-