Skip to content

Install and initialize MKCustomUI

Use the MKCustomUI plugin to replace the default MKPlayer playback UI with a customizable UI built on Bitmovin Player UI V3.

Install the package in your project:

Terminal window
npm install @mediakind/mkplayer-customui-plugin

Import MKCustomUI from the plugin in your source code.

Set playerConfig.ui to false when using MKCustomUI:

const playerConfig = {
...otherConfigs,
ui: false, // disable default Bitmovin UI
};

Create the player instance with your video container and config:

const player = new mkplayer.MKPlayer(videoContainer, playerConfig);

Create MKCustomUI with the initialized player instance:

const mkCustomizeUI = new mkplayercustomuiPlugin.MKCustomUI(player);

6. Release an existing UI manager before rebuilding

Section titled “6. Release an existing UI manager before rebuilding”

If you rebuild or switch UI layouts dynamically, release the previous uiManager first:

if (uiManager) {
uiManager.release();
uiManager = undefined;
}

This avoids duplicate controls and prevents memory leaks when switching UI variants.

© 2025–2026 MediaKind. All rights reserved.