spz-youtube
Displays a YouTube video.
Layouts
跳转到“Layouts”Usage
跳转到“Usage”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>
Attributes
跳转到“Attributes”videoid
跳转到“videoid”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
.
autoplay
跳转到“autoplay”If this attribute is present, the YouTube video automatically begins to play back as soon as.