Skip to content

Handling embedded videos with varying aspect ratios #1326

Open
@praveen-murali-ind

Description

@praveen-murali-ind

Ref - https://github.com/bigbinary/neeto-kb-web/issues/7544#issuecomment-2656538726

https://kirti-gulati-official-workspace.neetorecord.com/watch/3f39c02d03790424a8fd

Problem: Handling Embedded Videos with Varying Aspect Ratios

Users can embed videos with diverse aspect ratios (e.g., 4:3, 16:9, 9:16, custom). Maintaining responsiveness across different devices is crucial. Currently, we use a default aspect ratio for embedded videos to ensure responsiveness. However, when a user embeds a video with a different aspect ratio, additional spacing appears around the video, which is expected behavior.

One possible solution: Allow users to adjust the aspect ratio of embedded videos

  • Default aspect ratio: Set a sensible default (e.g., 16:9) that covers most common video formats.

  • Aspect ratio adjustment: Provide an intuitive way for users to select an aspect ratio, such as a dropdown with common presets (4:3, 16:9, 9:16, 1:1, etc.). The video's aspect ratio should dynamically update based on the user's selection or default if none is chosen.

This provides users with control over the presentation of their embedded videos while preserving responsiveness.

cc @AbhayVAshokan @KirtiGulati @harshitasingh24

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementEnhancement or feature request.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions