Setting viewport size does not constrain video resolution as expected
Open
@tianyif is already working on this.
Since Jun 4, 2024.
question
- Dominant language
- Java
- Stars
- 3k
- Forks
- 955
- Avg merge
- 12d 14h
- Merged PRs (30d)
- 2
Description
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 bugreportto android-media-github@google.com after filing this issue.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.