Version: 4.x
vime-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 | Attribute | Description | Type | Default |
---|---|---|---|---|
fit | 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 |
---|---|---|
vLoaded | Emitted when the poster has loaded. | CustomEvent<void> |
vWillHide | Emitted when the poster will be hidden. | CustomEvent<void> |
vWillShow | 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. |
#
Dependencies#
Used by#
GraphBuilt with StencilJS