The OTVSDK class
Methods
-
staticOTVSDK.getVersion()
Provides version details of the plugin and the underlying native Player SDK.
-
Returns:
OTVSDK.SDKVersionExample
OTVSDK.getVersion() -
staticOTVSDK.multiSession()
-
Properties:
Name Type Description OTVSDK.multiSessionboolean 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 levelnumber Log level to be set.
emitToJsboolean 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 sdkVersionString The underlying Player SDK version.
otvPlayerVersionString The Plugin version.