OptionaladaptationAdaptation configuration.
OptionaladvertisingAllows you to define which ads you want to display and when you want to display them. In order to play ads on your website, you need to specify an ad config.
Only applicable for Client-Side Ad Insertion (CSAI).
OptionalanalyticsBundled 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.
Disabled when not set.
For more information, please see documentation for MKAnalyticsConfig.
OptionalappApplication Identifier / Bundle Identifier for retail device native application.
This is required to set for retail devices native applications e.g. Tizen, LG WebOS, etc.
OptionalbufferBuffer configuration.
OptionalcastGoogle Cast Configuration
OptionalenableEnable SSAI Ad Tracking beacons.
When false, SDK doesn't notify any tracking URLs (including pauseAd tracking URLs, MKPauseAd).
Default is true (enabled).
OptionalenableEnable GooglePal.
Default is false.
Note: this is applicable only for registered sources.
OptionalenableEnable HLS image media playlist support.
Default is false (disabled)
OptionalenableGenerates signatures to secure the playback HTTP requests.
Note: this is applicable only for registered sources.
OptionalenableEnable captions and subtitle overlay.
To process subtitle 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 MKPlayerConfig.ui is enabled custom subtitle overlay is disabled. So to use subtitle overlay you must keep MKPlayerConfig.ui disabled.
OptionalenableEnable Widevine License Encryption.
Note:
OptionaleventsA mapping of MKPlayerEvent values to event handler callback functions.
Events can also be dynamically added and removed through MKPlayerAPI.on and MKPlayerAPI.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);
}
}
Player license key.
OptionallogLog configuration.
OptionalplaybackPlayback configuration.
OptionalssaiSsai Ad Configuration
OptionalstyleUX/UI config settings.
OptionaltweaksPlayer Tweaks.
Note: Use these only if you know what you are doing.
OptionaluiEnable 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.