Version: 4.x
vime-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.
#
QuirksWhen the player is
paused
,seeking
andseeked
are fired at the same time (in order), because there are no updates between the events from the embed.Changing the
controls
prop forces the player to reload.You cannot change
playbackQuality
programmatically, YouTube automatically determines the best quality to play.Fullscreen changes that come from clicking the YouTube fullscreen control are not tracked on iOS, because the embed doesn't provide an API for it.
#
Usage- HTML
- React
- Vue
- Svelte
- Stencil
- Angular
example.vue
example.svelte
example.html
#
PropertiesProperty | Attribute | Description | Type | Default |
---|---|---|---|---|
cookies | cookies | Whether cookies should be enabled on the embed. | boolean | false |
poster | poster | The absolute URL of a custom poster to be used for the current video. | string โฃ undefined | undefined |
showFullscreenControl | show-fullscreen-control | Whether the fullscreen control should be shown. | boolean | true |
videoId (required) | video-id | The YouTube resource ID of the video to load. | string | undefined |
#
Dependencies#
Used by#
Depends on#
GraphBuilt with StencilJS