On the HiMedia/Amlogic TV the video renders through the vendor video plane, which scales the decoded stream to the whole panel and ignores the letterbox geometry AspectRatioFrameLayout lays out for the SurfaceView. Portrait videos therefore filled the screen instead of being letterboxed; on emulators the same code was correct. Render the video in a TextureView instead: it lives in the normal view tree, so the aspect ratio is honored on every device. Verified on the HiMedia box (vertical short letterboxed, landscape fills the screen as before) and on the emulator. Closes #1 |
||
|---|---|---|
| .. | ||
| src | ||
| build.gradle.kts | ||
| proguard-rules.pro | ||