KEMBAR78
PlayerSurface on API 34 distorts when prepare isn't manually called on a portrait video when using SURFACE_TYPE_SURFACE_VIEW · Issue #2811 · androidx/media · GitHub
Skip to content

PlayerSurface on API 34 distorts when prepare isn't manually called on a portrait video when using SURFACE_TYPE_SURFACE_VIEW #2811

@eygraber

Description

@eygraber

Version

Media3 1.8.0

More version details

No response

Devices that reproduce the issue

Emulator running API 34

Devices that do not reproduce the issue

Emulator running API 30
Emulator running API 33
Emulator running API 35
Pixel 9 running API 36

Reproducible in the demo app?

Yes

Reproduction steps

Add the repro video to the first position in videos.kt, remove the call to prepare in initializePlayer, and change the call to MediaPlayerScreen to:

player?.let {
    Box(
      modifier = Modifier.fillMaxSize()
    ) {
      MediaPlayerScreen(player = it, modifier = modifier.fillMaxSize())
    }
  }

Expected result

The media plays correctly.

Actual result

The media starts playing back distorted, until the screen is interacted with.

repro.webm

Media

https://www.pexels.com/download/video/4058073/

Bug Report

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions