Aspect ratio of video embed is not handled correctly

(#2505) Bug Closed: Fixed desktop embeds media

Reproduction steps

  1. Post this sample video: cat.mp4
  2. Play the video in the embed preview.

Observed behaviour

The aspect ratio of the thumbnail is stretched, and the aspect ratio of the embed video container is taller than the actual video.

Build information

canary build 633 (af9fc11), Electron 41.2.2, macOS 26.4.1 (arm64), desktop canary 0.0.131, locale en-GB

Platform

macOS

Details

Expected behaviour The aspect ratio should match the video.
  1. Rex changed the status from Needs triage to Fixed

Merged posts

These posts were merged into this one. Their comments are now part of the conversation below, marked with where they came from.

Report details

Reproduction steps

  1. Attach this sample video to a message: cat.mp4
  2. Upload the message.
  3. Click on the video embed and watch it play.

Observed behaviour

The thumbnail is stretched and the playing video has black borders.

Build information

Canary 754 (03135b2), Host 0.0.212, Windows 11 10.0.26200 (x64), Electron 41.2.2, Chrome 146.0.7680.188, Node 24.14.1, Locale en-GB

Platform

Windows

Details

Expected behaviour The video should be the correct aspect ratio.

6 comments

Sign in with Fluxer to comment and vote.
Comment by ternera
terneraMod 1 vote
Can reproduce CR - canary build 633 (af9fc11), Electron 41.2.2, macOS 26.3.1 (arm64), desktop canary 0.0.131, locale en-US
Comment by Fullest
FullestReviewer 1 vote
Can reproduce CR: seems like it's a weird aspect ratio 1280x700. canary build 633 (af9fc11), Electron 41.2.2, Linux 6.19.14-200.fc43.x86_64 (x64), desktop canary 0.0.131, locale en-US
Comment by Daffyduck
DaffyduckMod 1 vote
Can reproduce canary build 633 (af9fc11), Electron 41.2.2, Windows 11 10.0.26200 (x64), desktop canary 0.0.131, locale en-GB
Comment by Fullest
FullestReviewer 1 vote edited by moderator Merged from #2672
CR: Canary 754 (03135b2), Host 0.0.212, Linux 7.0.4-100.fc43.x86_64 (x64), Electron 41.2.2, Chrome 146.0.7680.188, Node 24.14.1, Locale en-US