Aspect ratio of video embed is not handled correctly

(#2505) Bug Fixed desktop embeds media

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.

Reproduction steps

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

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.
  • Screenshot_2026-05-06_at_12.01.03_pm.png

    Screenshot_2026-05-06_at_12.01.03_pm.png

    992×596 | 559 kB

  • Screenshot_2026-05-06_at_12.00.39_pm.png

    Screenshot_2026-05-06_at_12.00.39_pm.png

    982×580 | 438 kB

cat.mp4 | 1.3 MB
  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

Observed behaviour

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

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.

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.
  • image.png

    image.png

    756×423 | 285 kB

  • image.png

    image.png

    759×426 | 223 kB

cat.mp4 | 1.3 MB

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