Optional adaptationAdaptation configuration.
Optional advertisingOptional analyticsBundled Analytics Configuration used to specify metadata and other related info.
Can also be used to completely disable Analytics by setting this to false in case the Analytics module is loaded, but Analytics is not desired.
For more information, please see documentation for MKAnalyticsConfig.
Optional appApplication Identifier / Bundle Identifier for retail device native application.
This is required to set for retail devices native applications e.g. Tizen, LG WebOS, etc.
Optional bufferBuffer configuration.
Optional castGoogle Cast Configuration
Optional enableEnable DAI Ad Tracking beacons.
Default is true (enabled).
Optional enableEnable BrandBrigade feature
Optional enableEnable GooglePal.
Optional enableEnable HLS image media playlist support.
Default is false (disabled)
Optional enableEnable Secure Url
Optional enableEnable captions and subtitle overlay.
To process subititle cue events and render subtitles/captions yourself, you must set this setting to false to disable SDK's internal subtitle/captions overlay.
Default is true (enabled). However, when ui is enabled custom subtitle overlay is disabled. So to use subtitle overlay you must keep ui disalbed.
Optional enableEnable Widevine Licencse Encryption. Note: KSS URL is required for this support.
Optional eventsA mapping of MKPlayerEvent values to event handler callback functions.
Events can also be dynamically added and removed through on and off.
Example:
events: {
[MKPlayerEvent.SourceLoaded]: (data) => {
console.log("Source loaded: ", data);
},
[MKPlayerEvent.Playing]: (data) => {
console.log("Video is playing: ", data);
},
[MKPlayerEvent.Error]: (data) => {
console.log("An error occurred: ", data);
}
}
Optional keyPlayer license key.
Optional liveProvide parameters specific to live streams.
Optional logLog configuration.
Optional playbackPlayback configuration.
Optional tweaksPlayer Tweaks.
Note: Use these only if you know what you are doing.
Optional uiEnable or disable default player UI.
When enabled, ensure that mkplayer-ui.css is added as part of your HTML document.
Default is false.
MKPlayer SDK configuration interface.