-
- All Implemented Interfaces:
public abstract class THEOplayerGlobal
The THEOplayer related operations which are not tied to a particular THEOplayerView.
-
-
Method Summary
Modifier and Type Method Description static THEOplayerGlobal
getSharedInstance(@NonNull() Context context)
A THEOplayerGlobal instance. abstract Cache
getCache()
The cache. abstract SslSettings
getSsl()
The settings of the Secure Socket Layer. abstract WebViewSettings
getWebViewSettings()
The settings of the webview. abstract PlaybackSettings
getPlaybackSettings()
The settings of the playback - Only available with Unified Android.
abstract void
setApplicationInstance(@NonNull() Application application)
Sets the Application instance. abstract void
registerContentProtectionIntegration(@NonNull() String integrationId, @NonNull() KeySystemId keySystemId, @NonNull() ContentProtectionIntegrationFactory integrationFactory)
Register a ContentProtectionIntegrationFactory for a specific integration id and a specific keySystem. static String
getVersion()
The THEOplayer version used. static String
getPlayerSuiteVersion()
The THEOplayer suite version used. static SDKType
getSDKType()
The THEOplayer SDKType used. -
-
Method Detail
-
getSharedInstance
@NonNull() static THEOplayerGlobal getSharedInstance(@NonNull() Context context)
A THEOplayerGlobal instance.
- Parameters:
context
- The Activity context.
-
getCache
@Nullable() abstract Cache getCache()
The cache.
- Only available with feature 'cache'.
- Will return null if the 'cache' feature is not enabled.
-
getSsl
@NonNull() abstract SslSettings getSsl()
The settings of the Secure Socket Layer.
-
getWebViewSettings
@NonNull() abstract WebViewSettings getWebViewSettings()
The settings of the webview.
-
getPlaybackSettings
@Nullable() abstract PlaybackSettings getPlaybackSettings()
The settings of the playback
- Only available with Unified Android.
-
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"
-
getPlayerSuiteVersion
static String getPlayerSuiteVersion()
The THEOplayer suite version used.
Example:
- "2020.2.0"
-
getSDKType
static SDKType getSDKType()
The THEOplayer SDKType used.
- For possible values, see SDKType.
-
-
-