THEOplayer > UIConfiguration
Describes the UI configuration of the player.
Signature:
export interface UIConfiguration
Property |
Type |
Description |
---|---|---|
fluid (optional) |
|
Whether the UI of the player is responsive. |
fullscreenOptions (optional) |
Options to control transitions to fullscreen mode. |
|
height (optional) |
|
The height of the player. |
language (optional) |
|
The language which is used for localization. |
languages (optional) |
|
A record used to localize to multiple languages. Each entry contains a language code with associated language map. |
userActions (optional) |
Actions that define the behavior of the player |
|
width (optional) |
|
The width of the player. |
Whether the UI of the player is responsive.
Signature:
fluid?: boolean;
Options to control transitions to fullscreen mode.
Signature:
fullscreenOptions?: FullscreenOptions;
- Available since v2.90.0.
The height of the player.
Signature:
height?: number | string;
Possible formats
- A number as the amount of pixels.
- A percentage string (XX%).
The language which is used for localization.
Signature:
language?: string | UILanguage;
- This can be a language map.
- Otherwise it can be a language code which is the key to a language map in UIConfiguration.languages.
Localize statically to one language.
ui: {
language: {
"Play": "Reproducir",
"Pause": "Pausa",
"Current Time": "Tiempo actual",
// [...]
}
}
Localize dynamically to one of multiple languages.
ui: {
language: 'es',
languages: {
"es": {
"Play": "Reproducir",
"Pause": "Pausa",
"Current Time": "Tiempo actual",
// [...]
},
"fr": {
// [...]
}
}
}
A record used to localize to multiple languages. Each entry contains a language code with associated language map.
Signature:
languages?: Record<string, UILanguage>;
Actions that define the behavior of the player
Signature:
userActions?: UserActions;
- Available since v4.3.0
The width of the player.
Signature:
width?: number | string;
Possible formats
- A number as the amount of pixels.
- A percentage string (XX%).