Skip to content

Keep video aspect ratio in VideoTile - #107

Merged
ladvoc merged 1 commit into
mainfrom
max/video-tile-aspect-ratio
Nov 4, 2026
Merged

ladvoc merged 1 commit into
mainfrom
max/video-tile-aspect-ratio

Conversation

@MaxHeimbrock

Copy link
Copy Markdown
Contributor

VideoTile stretched every frame to fill its cell, so portrait or non-16:9 sources (phone cameras, screen shares, avatars) came out distorted. The renderer now exposes the frame as a SizedTexture and the tile scales it to fit and centers it, with the tile background filling the rest of the cell.

Before:
Screenshot 2026-11-03 at 16 36 34

After:
Screenshot 2026-11-03 at 16 47 45

VideoTile stretched every frame to fill its cell, so portrait or
non-16:9 sources (phone cameras, screen shares, avatars) came out
distorted. The renderer now exposes the frame as a SizedTexture and the
tile scales it to fit and centers it, with the tile background filling
the rest of the cell.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
@MaxHeimbrock
MaxHeimbrock requested a review from ladvoc as a code owner November 3, 2026 15:48

@ladvoc ladvoc left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice, thanks for addressing this! This made me realize another case we don't handle yet is when the track metadata specifies a video rotation. With this in place, I don't think it would be too hard to apply that rotation for display using the same general approach. I will leave that as a follow-up.

@ladvoc
ladvoc merged commit 83da48d into main Nov 4, 2026
16 of 19 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants