Skip to content

Fix aspect ratio when navigating between different media type#1106

Merged
StaehliJ merged 1 commit intomainfrom
1105-fix-broken-video-aspect-ratio-when-switching-between-different-media-types-audiovideoimage
Jul 14, 2025
Merged

Fix aspect ratio when navigating between different media type#1106
StaehliJ merged 1 commit intomainfrom
1105-fix-broken-video-aspect-ratio-when-switching-between-different-media-types-audiovideoimage

Conversation

@MGaetan89
Copy link
Contributor

Pull request

Description

This PR fixes the wrong aspect ratio when switching between different media types (video/audio).

Changes made

  • Use a state to access the current media tracks in the PlayerSurface.
  • Take the image track into consideration when deciding the aspect ratio in PlayerSurface.
  • Fix some Dependency Analysis warnings.

Checklist

  • APIs have been properly documented (if relevant).
  • The documentation has been updated (if relevant).
  • New unit tests have been written (if relevant).
  • The demo has been updated (if relevant).

@github-actions
Copy link

Code Coverage

Overall Project 48.9% -0.19% 🟢
Files changed 0% 🟢

Module Coverage
:pillarbox-ui 0.26% -1.27% 🟢
Files
Module File Coverage
:pillarbox-ui PlayerSurface.kt 1.29% -6.34% 🟢

@MGaetan89 MGaetan89 marked this pull request as ready for review July 11, 2025 09:19
@MGaetan89 MGaetan89 requested a review from StaehliJ July 11, 2025 09:19
@StaehliJ StaehliJ added this pull request to the merge queue Jul 14, 2025
Merged via the queue into main with commit ea0b5b4 Jul 14, 2025
16 of 17 checks passed
@StaehliJ StaehliJ deleted the 1105-fix-broken-video-aspect-ratio-when-switching-between-different-media-types-audiovideoimage branch July 14, 2025 14:00
@github-project-automation github-project-automation bot moved this from 📋 Backlog to ✅ Done in Pillarbox Jul 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: ✅ Done

Development

Successfully merging this pull request may close these issues.

Fix broken video aspect ratio when switching between different media types (audio/video/image)

2 participants