SRGSSR / pillarbox-android

The modern SRG SSR Pillarbox player targeting Android platforms
MIT License
11 stars 1 forks source link

Video doesn't fit when PlayerSurface size changed on Android Pixels devices #515

Open StaehliJ opened 2 weeks ago

StaehliJ commented 2 weeks ago

As a user / integrator I want to change the video size during playback and keep the correct aspect ratio on every devices.

Current state

We can reproduce the bug with Pixels device by running the showcase "resizable player".

On samsung device, the correct behavior is

Image

Image

After changing the video, the crosshair point to the same location on the video.

The same case but on a Pixel 8 Android 14 device

Image

Even at startup the crosshair is not placed correctly. The video aspect ratio is know a bit after and the video surface seems not to be updated.

Image

After changing the video size, the drawing of the video doesn't follow it.

Acceptance criteria

Tasks

StaehliJ commented 2 weeks ago

This issue is related to https://github.com/androidx/media/issues/1237