media icon indicating copy to clipboard operation
media copied to clipboard

Setting viewport size does not constrain video resolution as expected

Open cdongieux opened this issue 9 months ago • 2 comments

Version

Media3 1.2.0

More version details

main branch

Devices that reproduce the issue

Any device or emulator

Devices that do not reproduce the issue

No response

Reproducible in the demo app?

Yes

Reproduction steps

  1. In demo app, set viewport size in PlayerActivity.onCreate()
      trackSelectionParameters = new TrackSelectionParameters.Builder(/* context= */ this)
          .setViewportSize(1000, 530, false)
          .build();
  1. Launch demo app
  2. Play item in "Clear DASH" > "HD (MP4, H264)"

Expected result

Max played resolution is 854x380, as the viewport size is set to 1000x530

Actual result

Max played resolution is 1280x570, which exceeds viewport size.

Media

"Clear DASH" > "HD (MP4, H264)" in demo app

Bug Report

  • [ ] You will email the zip file produced by adb bugreport to [email protected] after filing this issue.

cdongieux avatar Jun 04 '24 12:06 cdongieux