YouTube Video Player

Prev Next

Editorial purpose

Displays a 16:9 embedded YouTube player for a YouTube video entity. It shows the thumbnail and plays when tapped, or starts automatically when autoplay is enabled.

Required FORGE custom entity

This module requires the YouTube Videos custom entity.

Parameters

Data

Label

Type

Description

Video Slug

Text

Slug of the YouTube video entity to play.

In the content picker, search by slug and select youtubevideo content.

Set videoSlug to a youtubevideo entity; the module is not shown when the entity cannot be loaded.

The entity's videoId field holds the YouTube video ID; when it is empty, an error message is shown instead of the player.

Visual

Label

Type

Description

Color Schema

Selection

Select the module's color scheme.

Options: light (Light); dark (Dark).

colorSchema forces a light or dark scheme on the module.

Remove top spacing

Toggle

Remove the spacing above the module.

Remove bottom spacing

Toggle

Remove the spacing below the module.

Hide module

Toggle

Hide the module.

Autoplay

Toggle

Autoplay video on load.

autoplay starts playback as soon as the module appears; playback stops when the player leaves the screen.