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.
1. Install the plugin
Install the package in your project:
2. Import the plugin
Import MKCustomUI from the plugin in your source code.
3. Disable the default player UI
Set playerConfig.ui to false when using MKCustomUI:
4. Initialize MKPlayer
Create the player instance with your video container and config:
5. Initialize MKCustomUI
Create MKCustomUI with the initialized player instance:
6. Release an existing UI manager before rebuilding
If you rebuild or switch UI layouts dynamically, release the previous uiManager first:
This avoids duplicate controls and prevents memory leaks when switching UI variants.