Skip to content

[Android] MetaDataReady is called even when mediaPlayer.Info.GetDuration() still returns 0 #2439

@johnsympatient

Description

@johnsympatient

Unity version

6000.0.65

Unity editor platform

Windows

AVPro Video edition

Core

AVPro Video version

3.3.6

Device hardware

Samsung S8

Which Android OS version are you using?

8

Unity Graphics API

OpenGLES 3

Video API

Exoplayer

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?

Display uGUI

Any other component configuration required to reproduce the issue.

No response

The issue

When MediaPlayerEvent.EventType.MetaDataReady is called, mediaPlayer.Info.GetDuration() often still returns 0.
As it works sometimes, it seems to be a race condition somewhere

Media information

No response

Logcat output

Metadata

Metadata

Assignees

Labels

AndroidAndroid platformFixedA fix will be in the next release

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions