Skip to main content
100%

amp-youtube

✓ Published0🌍 Public
Aaaizemberg
Last edited Aug 2, 2019
Created on Aug 2, 2019

This example shows how to embed a YouTube video directly into an Accelerated Mobile Pages (AMP) document using the `amp-youtube` custom element. The page displays a single video player with a responsive layout that scales based on the viewport width, using the video ID `6wV1OrjwNZ8`. The code relies on the AMP runtime script and the `amp-youtube` component script loaded from the AMP CDN. No additional data source or rendering logic is present; the video playback is handled entirely by YouTube’s embedded player through the AMP component.

AI-generated description

Similar vizzes