Video Embed Block Demo
!Note: this piece of documentation is auto-generated from blocks/VideoEmbedBlock/README.md.
Embeds an external video from YouTube or Vimeo with a cover image, caption and options to autoplay, mute and loop.
Features
Supports both YouTube and Vimeo vidoes.
Supports caption defaulting to external video's title and optional custom title override.
Supports autoplay, mute and loop.
Reserves space for image to prevent page reflow.
Conditionally loads video on click or when autoplay is set.
Has a responsive video cover image that lazy loads image for better performance.
Requires user to give consent due to third party tracking (see #49: consent manager). Alternatively use Video Block with video uploaded in DatoCMS, served without tracking.