Optional aspectratioThe aspect ratio of the player, e.g. 16:9, 16:10, 4:3. Not more than two options of width, height, and aspect ratio should be given. Defaults to 16:9.
Optional containerA callback to specify the element that the player will add style elements to.
Defaults to the head element.
Optional heightThe height of the player. Can have any value including the unit (e.g. px, %, em, vh) usable in CSS, e.g. 500px or 90%. Not more than two options of width, height, and aspect ratio should be given. If no unit is give, 'px' is assumed. If no height is given, the height is controlled via CSS aspect-ratio classes (default)
Optional uiA callback to provide a custom initialization of a UIManager for the Bitmovin Player Web UI.
Example:
uiManagerFactory = (playerAPI, config) => {
// create and return your custom UIManager here
return new bitmovin.playerui.UIFactory.buildUI(playerAPI, config);
};
Per default playerui.UIFactory.buildDefaultUI will be called to create the UI.
Optional config: anyOptional widthThe width of the player. Can have any value including the unit (e.g. px, %, em, vw) usable in CSS, e.g. 500px or 90%. Not more than two options of width, height, and aspect ratio should be given. If no unit is given, 'px' is assumed. If no width is given, the width is controlled via CSS aspect-ratio classes (default)
Example: