media
media copied to clipboard
Setting viewport size does not constrain video resolution as expected
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
- In demo app, set viewport size in
PlayerActivity.onCreate()
trackSelectionParameters = new TrackSelectionParameters.Builder(/* context= */ this)
.setViewportSize(1000, 530, false)
.build();
- Launch demo app
- 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.