Video-Only Component: Difference between revisions
No edit summary |
|||
| (2 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
This a simple, no-frills | {{DrupalBack}} | ||
This is a simple, no-frills component for embedding a video from YouTube or Vimeo. If you're looking for a component that also includes a '''title''', '''abstract''', and/or '''call-to-action link''', consider using the [[Feature Component|'''Feature''']] or [[Feature Link List Component|'''Feature Link List''']] component instead. | |||
== Elements == | == Elements == | ||
# Title (''required, not displayed'') | # Title (''required, not displayed'') | ||
# Media | # Media – Image (''used as the video's poster image if present'') | ||
# Media | # Media – Video | ||
== Examples == | == Examples == | ||
{{Callout|type=tip|title=Interactive Example|content=The preview below shows the Video-Only component using its default configuration. | |||
To experiment with different settings, open the interactive component playground. | |||
'''[https://toolkit.swarthmore.edu/?path=/story/swarthmore-theme-components-video-only Open Component Playground]'''}} | |||
{{StorybookComponent|id=swarthmore-theme-components-video-only|toggleState=0}} | {{StorybookComponent|id=swarthmore-theme-components-video-only|toggleState=0}} | ||
| Line 13: | Line 20: | ||
== Step-by-step Instructions == | == Step-by-step Instructions == | ||
* | * Select '''Add New Component → Video-Only'''. | ||
* Optionally, add the | * Optionally, add the '''Feature Image''' (optimal dimensions: '''1530px × 1020px'''). If both a '''Video URL''' and an '''Image File''' are present, the image will be used as the video's poster image. This is the intended behavior but is not required. | ||
** <u>If using an existing image already in the system</u>: | ** <u>If using an existing image already in the system</u>: | ||
**# Click | **# Click the '''Insert an Image''' button to launch the image browser. | ||
**# Navigate to the image under | **# Navigate to the image under '''Select Image''', select it using the radio button, and click '''Select Image'''. | ||
** <u>If using a new image</u>: | ** <u>If using a new image</u>: | ||
**# | **# Click the '''Insert an Image''' button to launch the image browser. | ||
**# Click | **# Click '''Upload Image''', then click '''Browse…''' to locate the image on your computer. Finally, click '''Select Image'''. | ||
* Add a | * Add a '''Video URL'''. | ||
** Videos shared on the College | ** ''Note:'' The system expects videos to come from '''YouTube''' or '''Vimeo'''. | ||
** Videos shared on the College website should include '''closed captions'''. | |||
*** [https://support.google.com/youtube/answer/2734796?hl=en Adding captions to a YouTube video] | *** [https://support.google.com/youtube/answer/2734796?hl=en Adding captions to a YouTube video] | ||
*** [https://help.vimeo.com/hc/en-us/articles/224968828-Captions-and-subtitles Adding captions to a Vimeo video] | *** [https://help.vimeo.com/hc/en-us/articles/224968828-Captions-and-subtitles Adding captions to a Vimeo video] | ||
[[Category:Drupal]] | [[Category:Drupal]] | ||
Latest revision as of 13:12, 10 July 2026
This is a simple, no-frills component for embedding a video from YouTube or Vimeo. If you're looking for a component that also includes a title, abstract, and/or call-to-action link, consider using the Feature or Feature Link List component instead.
Elements
- Title (required, not displayed)
- Media – Image (used as the video's poster image if present)
- Media – Video
Examples
Interactive Example
The preview below shows the Video-Only component using its default configuration.
To experiment with different settings, open the interactive component playground.
Open Component Playground
Step-by-step Instructions
- Select Add New Component → Video-Only.
- Optionally, add the Feature Image (optimal dimensions: 1530px × 1020px). If both a Video URL and an Image File are present, the image will be used as the video's poster image. This is the intended behavior but is not required.
- If using an existing image already in the system:
- Click the Insert an Image button to launch the image browser.
- Navigate to the image under Select Image, select it using the radio button, and click Select Image.
- If using a new image:
- Click the Insert an Image button to launch the image browser.
- Click Upload Image, then click Browse… to locate the image on your computer. Finally, click Select Image.
- If using an existing image already in the system:
- Add a Video URL.
- Note: The system expects videos to come from YouTube or Vimeo.
- Videos shared on the College website should include closed captions.