Skip to content

Commit

Permalink
feat(emulsif-246): restructure video data files for SDC support
Browse files Browse the repository at this point in the history
  • Loading branch information
robherba committed Aug 19, 2024
1 parent 27f070e commit 7724f79
Show file tree
Hide file tree
Showing 4 changed files with 44 additions and 7 deletions.
21 changes: 21 additions & 0 deletions src/components/videos/video-embed.component.yml
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&amp;start=0'></iframe>"
2 changes: 0 additions & 2 deletions src/components/videos/video-embed.yml

This file was deleted.

23 changes: 23 additions & 0 deletions src/components/videos/video-html5.component.yml
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'
5 changes: 0 additions & 5 deletions src/components/videos/video-html5.yml

This file was deleted.

0 comments on commit 7724f79

Please sign in to comment.