spz-youtube

Displays a YouTube video.

With the responsive layout, the width and height attributes from the example should yield the correct layout for a 16:9 aspect ratio video:

  <spz-youtube
    layout="fixed"
    width="640"
    height="360"
    videoid="HGl75kurxok"
    autoplay
  ></spz-youtube>

required

This attribute is required. You will see a YouTube URL on the “Share” portion. The YouTube ID will be the portion at the end of the URL after the last slash.

For example, in this URL https://youtu.be/HGl75kurxok, the YouTube video id is HGl75kurxok.

If this attribute is present, the YouTube video automatically begins to play back as soon as.

本页目录