youtube
youtube

In this section, we will learn more about ds.youtube component and its usage.

The ds.youtube component creates a rectangular region in your page where the embedded YouTube video will be displayed. You specify the source of the content using the v property, which can be a vertion of a YouTube video.

Example:

Input
-- cb.code:
lang: java

-- ds.youtube:
v: UzAC8aOf2is
width: fill-container
height.fixed.px: 450
Lang:
ftd
Output

Properties of ds.youtube component

  • v - type: string It’s used to add YouTube video versionto ds.youtube component.

    For e.g. the YouTube link of above example video is https://www.youtube.com/watch?v=UzAC8aOf2is in this link v=UzAC8aOf2is version value is the value of v property.

  • width - type: ftd.resizing It’s used to add width to ds.youtube component.

  • height - type: ftd.resizing It’s used to add height to ds.youtube component.
Copyright ©2022. Fastn Inc.