Version: 5.x
vm-youtube
Enables loading, playing and controlling videos from YouTube.
You don't interact with this component for passing player properties, controlling playback, listening to player events and so on, that is all done through the
vime-player
component.
#
Usage- HTML
- React
- Vue
- Svelte
- Stencil
- Angular
example.vue
example.svelte
example.html
#
PropertiesProperty | Description | Type | Default |
---|---|---|---|
cookies | Whether cookies should be enabled on the embed. | boolean | false |
poster | The absolute URL of a custom poster to be used for the current video. | string โฃ undefined | undefined |
showFullscreenControl | Whether the fullscreen control should be shown. | boolean | true |
videoId (required) | The YouTube resource ID of the video to load. | string | undefined |