The OTVSDK class
Methods
-
staticOTVSDK.getVersion()
Provides version details of the plugin and the underlying native Player SDK.
-
Returns:
OTVSDK.SDKVersion
Example
OTVSDK.getVersion()
-
staticOTVSDK.multiSession()
-
Properties:
Name Type Description OTVSDK.multiSession
boolean multisession flag. The get, set accessors are used to update this multiSession flag value in OTVSDK. This value is used only once during the very first mount of the OTVPlayer in the Apps lifecycle, and any change after to this is not tracked. These methods are not applicable in Android and IOS platfroms. This property can be directly accessed and used in code using getter and setter methods as follows
Example
//To get the multiSession value let value = OTVSDK.multiSession //To Set the multiSession value to true OTVSDK.multiSession = true
-
staticOTVSDK.setSDKLogLevel(level, emitToJs)
To set OTVPlayer log level.
OTVSDK_LOGLEVEL
-
Name Type Description level
number Log level to be set.
emitToJs
boolean Whether to emit native logs (Invalid for web platform)
Example
OTVSDK.setSDKLogLevel(OTVSDK_LOGLEVEL.ERROR, true) OTVSDK.setSDKLogLevel(OTVSDK_LOGLEVEL.WARNING, false) -> default OTVSDK.setSDKLogLevel(OTVSDK_LOGLEVEL.INFO)
Type Definitions
-
OTVSDK.SDKVersion
Version numbers.
-
Properties:
Name Type Description sdkVersion
String The underlying Player SDK version.
otvPlayerVersion
String The Plugin version.