otvplayer.js
Methods
-
innerotvplayer(id, options, ready){Player}
-
Doubles as the main function for users to create a player instance and also the main library object. The
otvplayerfunction can be used to initialize or retrieve a player.Name Type Description idstring | Element Video element or video element ID
optionsObject optional Optional options object for configuration settings of HTML5 and plugins including the OtvToolkit for
opy-sdk-jsName Type Description html5Object optional HTML5 video playback configuration
Name Type Description nativeCaptionsBoolean optional Must be set to true for Safari/HLS and Hbbtv/html5 subtitles and captions to be enabled
nativeAudioTracksBoolean optional Must be set to true for Safari/HLS and Hbbtv/html5 multi-audio tracks to be enabled
liveuiBoolean optional Set to
trueto display the progress bar for seeking within the seekable range during live stream playbackautoplayBoolean optional mutedBoolean optional Initial mute setting
pluginsObject optional Structure for configuration of HTML5 plugins such as our SDK
Name Type Description otvtoolkitObject optional Structure for the configuration relating to our SDK
Name Type Description drmObject optional Optional DRM configuration
Name Type Description systemmodule:opy~DrmSystemConfig optional To specify the DRM system to be used
configObject optional Optional object for further configuration
Name Type Description modemodule:opy~DRMConfigMode optional To specify the DRM mode of operation.
classictokenandupfronttokenare only relevant when using the Conax systems.tenantIdString optional To specify the tenant identifier on the SSP/SSM head end instance
licenceServerString optional URL of the SSP head end instance
ssmServerString optional URL of the SSM head end instance
preferredDRMmodule:opy~PreferredDRMOptions optional Use this attribute to designate your preferred DRM system
widevineServerCertificateString optional base64 encoded Widevine certificate of the license server
fairplayServerCertificateString optional base64 encoded FairPlay certificate of the license server
requestLicenceCallbackString optional Required when
systemiscustomerto specify the name of the function that the SDK will call to perform a customer specific licence retrieval mechanism.tvkeyOperatorUUIDString optional Optional object for operator UUID of tvkey DRM system.
preferredPlayermodule:opy~PreferredPlayerOptions optional Optional object to specify player system to be used. The
html5option is only available in HBBTV. The default value isshakaifpreferredPlayeris undefined in HBBTV.readyComponent~ReadyCallback optional Optional ready callback
Returns:
Type Description Player A player instance
Type Definitions
-
DRMConfigModetoken classictoken upfronttoken
-
DRM configuration mode
-
DrmSystemConfignagra-ssp nagra-ssp-fps customer customer-ssm customer-fps microsoft-azure nagra-conax nagra-conax-fps nagra-conax-upfront nagra-conax-upfront-fps nagra-ssp-tvkey customer-tvkey
-
Configuration options for DRM systems
-
PreferredDRMOptionscom.microsoft.playready com.widevine.alpha com.apple.fps com.tvkey.drm
-
Preferred DRM system options
-
PreferredPlayerOptionshtml5 shaka
-
Preferred player options