Skip to content

[Android] SetActiveAudioTrack makes video jump forward in time #2392

@JeffWTD

Description

@JeffWTD

Unity version

6000.0.60f1

Unity editor platform

Windows

AVPro Video edition

Core

AVPro Video version

3.3.3

Device hardware

Pico G4 Business Ultra

Which Android OS version are you using?

16

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?

Apply to Material

Any other component configuration required to reproduce the issue.

No response

The issue

Whenever I call SetActiveAudioTrack to switch the audio track to one of 5 tracks in a video it moves the video forward.
This seems to happen both when the video is playing, AND when the video is not playing, causing the video to start somewhere 3 or so seconds into the video when pressing play.
The amount it skips seems to be a bit random, but around 3 to 8 seconds.

Media information

360 Equirect 4K video at 60 FPS AV1 encoding with 5 audio tracks included using ffmpeg.
Bitrate does not seem to change anything. I made a newly encoded version at half and quarter bitrate and issue persists.

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