Version: 5.x
vm-poster
Loads the poster set in the player prop currentPoster
and displays it. The poster will automatically
dissapear once playback starts.
#
Visual#
Usage- HTML
- React
- Vue
- Svelte
- Stencil
- Angular
example.vue
example.svelte
example.html
#
PropertiesProperty | Description | Type | Default |
---|---|---|---|
fit | How the poster image should be resized to fit the container (sets the object-fit property). | "contain" ∣ "cover" ∣ "fill" ∣ "none" ∣ "scale-down" ∣ undefined | 'cover' |
#
EventsEvent | Description | Type |
---|---|---|
vmLoaded | Emitted when the poster has loaded. | CustomEvent<void> |
vmWillHide | Emitted when the poster will be hidden. | CustomEvent<void> |
vmWillShow | Emitted when the poster will be shown. | CustomEvent<void> |
#
CSS Custom PropertiesName | Description |
---|---|
--vm-poster-z-index | The position in the UI z-axis stack inside the player. |