Configuration parameters could be provided upon instantiation of the UI manager instance.
var config = {
// Configuration here
};
var uiManager = new playkit.ui.UIManager(player, config);
{
targetId: string,
debugActions?: boolean, // optional
forceTouchUI?: boolean, // optional
showCCButton?: boolean, // optional
settings?: { // optional
showAudioMenu?: boolean, // optional
showCaptionsMenu?: boolean, // optional
showQualityMenu?: boolean, // optional
showSpeedMenu?: boolean, // optional
showAdvancedAudioDescToggle?: boolean, // optional
showAdvancedCaptionsMenu?: boolean // optional
},
hoverTimeout?: number, // optional
logger?: loggerType, // optional
components?: Object, // optional
uiComponents: Array<Object>, //optional
translations: Object, // optional
locale: string // optional
}
The UI manager needs this parameter since it renders the player UI below it.
Useful for applications that wants to force mobile view of player UI.
Useful for applications that wants to set different hover timeout duration for player controls.
Possible values:
"DEBUG", "INFO", "TIME", "WARN", "ERROR", "OFF"
Default: see
en.i18n.json
Optional components to configure:
watermark
,seekbar
,fullscreen
Determine the translation dictionary to be used
Optional components to configure:
watermark
,seekbar
,fullscreen
,logo
{ thumbsWidth: number, thumbsHeight: number, thumbsSlices: number, thumbsSprite: string }{ thumbsWidth: 164, thumbsHeight: 92, thumbsSlices: 100, thumbsSprite: '{POSTER_URL}/p/{PID}/sp/{PID}00/thumbnail/entry_id/{ENTRY_ID}/version/100042/width/{THUMBS_WIDTH}/vid_slices/{THUMBS_SLICES}' }Default: '{POSTER_URL}/p/{PID}/sp/{PID}00/thumbnail/entry_id/{ENTRY_ID}/version/100042/width/{THUMBS_WIDTH}/vid_slices/{THUMBS_SLICES}'
Possible values:
'', custom url
Notes:
- Passing empty string will disable thumbnail on the seekbar.
- The default value is for OVP only.
{ img: string, url: string, placement: string, timeout: number }{ img: '', url: '', placement: 'top-left', timeout: 0 }Possible values:
'top-left', 'top-right', 'bottom-left', 'bottom-right'
{ disableDoubleClick: boolean; }{ disableDoubleClick: false; }Moved to
playback.inBrowserFullscreen
Array<{ label: string, presets: Array<string>, container: string, get: Function props?: {} beforeComponent?: string, afterComponent?: string, replaceComponent?: string }>
See guide ui-components