Skip to content

[Android] Video aspect glitches during playback when set to scale-and-crop #2465

@Evryway

Description

@Evryway

Unity version

2022.3.62f2

Unity editor platform

Windows

AVPro Video edition

Ultra

AVPro Video version

3.3.6

Device hardware

Samsung Tab 5E + multiple

Which Android OS version are you using?

11

Unity Graphics API

OpenGLES 3

Video API

MediaPlayer

Texture format

BGRA

Audio output

System Direct

Any other Media Player component configuration required to reproduce the issue.

No response

Which output component(s) are you using?

No response

Any other component configuration required to reproduce the issue.

No response

The issue

The issue:
the video aspect ratio jumps for a few frames during the initial second of playback, causing a noticable glitch. This happens with all videos tested so far.

playing back video from a remote URL (m3u8, hosted on cloudflare). The video DisplayUGUI component is set to "scale and crop".

To reproduce:
clean install of AVPro V3.3.6 in a new unity project.
open the Demo_MediaPlayer scene
modify the MediaPlayerUI / Video / VideoDisplay : DisplayUGUI component to "scale and crop"
use the provided m3u8 link as the source (link sent via email to support address above)

Build and run to device.

Notice that the video aspect "jumps" or "bobbles" during the first second of playback.

We have not noticed this issue on iOS, only on Android.

Media information

Logcat output

Metadata

Metadata

Assignees

Labels

AndroidAndroid platformtriageNeeds triage

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions