Basic customization
Adjust the controls and configs in the default Bitmovin Player UI layout.
Since Bitmovin Player UI v4.20+ we offer new APIs to make some basic customizations to our default UI. This includes overriding component-specific configurations and including or excluding default elements in our default UI layout.
Both new APIs are available when initializing the UI with a standalone UIManager or by passing the configuration through the PlayerConfig.ui.
Include or exclude controls
Use componentLayoutOverrides to choose which controls are present in a default layout. Each supported component accepts one of two values.
includekeeps the control in the position defined by the layout. It can also enable a control that is excluded by default.excluderemoves the control from the layout.
const uiConfig = {
componentLayoutOverrides: {
CaptionToggleButton: 'include',
PlaybackSpeedSelectBox: 'exclude',
},
};
const uiManager = bitmovin.playerui.UIFactory.buildUI(player, uiConfig);See UIComponentLayoutOverrideMap for the supported component names.
Change component configs
Use componentConfigOverrides to change individual configurations for components in the default UI.
const uiConfig = {
componentConfigOverrides: {
UIContainer: { hideDelay: 4000 },
},
};Only the properties you want to change can be set. See UIComponentConfigMap for the options each component accepts.
Scope an override to a UI variant
To override settings only for a specific UI variant, nest the overrides under its variant name.
const uiConfig = {
componentLayoutOverrides: {
smallScreen: {
FullscreenToggleButton: 'exclude',
},
},
};Top-level entries apply across the default layouts. When both levels set the same override, the variant-specific entry takes precedence for that layout. See UIVariantIdentifier for the variant names.
Advanced customization
For branding and custom components, see Customising the UI. To move controls or arrange them in a new layout, see Build a custom UI structure.
Updated about 2 hours ago
What’s Next
Explore custom layouts, branding, and components.