Add a Video prop type to the Code Component editor

Created on 8 July 2025, about 10 hours ago

Overview

#3524130-24: Define JSON Schema $refs for linking/embedding videos and linking documents β†’ added a video prop type. πŸ“Œ Change video prop shape: remove width and height, and make src optional Active will make some changes to it. πŸ“Œ [PP] FE implementation of Video Prop Active will make sure it works well for content authors. But in addition to all that, we also need to make it available for code component authors to select when they're defining the component's props.

Proposed resolution

  • Add it as a prop type in the code component editor.
  • For setting the example value, provide a UI similar to the one for the image prop type, but where the select options are geared towards common video aspect ratios and resolutions (e.g., SD, HD, 1080p, 4k, etc.).
  • Use the selected aspect ratio and/or resolution to generate the URL to a placeholder image (similar as for the image prop type) and set that as the example value's poster property. See also πŸ“Œ Change video prop shape: remove width and height, and make src optional Active .

User interface changes

✨ Feature request
Status

Active

Version

0.0

Component

Component sources

Created by

πŸ‡ΊπŸ‡ΈUnited States effulgentsia

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024