-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(emulsif-246): restructure video data files for SDC support
- Loading branch information
Showing
4 changed files
with
44 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
$schema: https://git.drupalcode.org/project/drupal/-/raw/10.1.x/core/modules/sdc/src/metadata.schema.json | ||
|
||
name: Video Embed | ||
group: Components | ||
status: stable | ||
props: | ||
type: object | ||
required: | ||
- video__type | ||
- video_content | ||
properties: | ||
video__type: | ||
type: string | ||
title: Video Type | ||
description: 'Specifies the type of video to embed. Possible values: embed, html5' | ||
data: 'embed' | ||
video_content: | ||
type: string | ||
title: Video Content | ||
description: 'Directly specifies the HTML content for embed videos' | ||
data: "<iframe title='Test Video' width='854' height='480' frameborder='0' allowfullscreen='allowfullscreen' src='https://www.youtube.com/embed/YRnVnlhjOBs?autoplay=0&start=0'></iframe>" |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
$schema: https://git.drupalcode.org/project/drupal/-/raw/10.1.x/core/modules/sdc/src/metadata.schema.json | ||
|
||
name: Video HTML5 | ||
group: Components | ||
status: stable | ||
props: | ||
type: object | ||
required: | ||
- video__type | ||
- video__urls | ||
properties: | ||
video__type: | ||
type: string | ||
title: Video Type | ||
description: 'Specifies the type of video to embed. Possible values: embed, html5' | ||
data: 'html5' | ||
video__urls: | ||
type: array | ||
title: Video URLs | ||
description: 'List of video URLs for HTML5 videos' | ||
data: | ||
- 'https://www.learningcontainer.com/wp-content/uploads/2020/05/sample-mp4-file.mp4' | ||
- 'https://www.learningcontainer.com/wp-content/uploads/2020/05/sample-webm-file.webm' |
This file was deleted.
Oops, something went wrong.