UnityPlugin-AVProVideo icon indicating copy to clipboard operation
UnityPlugin-AVProVideo copied to clipboard

[Android] video doesn't show after scene restart

Open nara6500 opened this issue 5 months ago • 2 comments

Unity version

6000.0.45

Unity editor platform

macOS

AVPro Video edition

Ultra

AVPro Video version

3.2.6

Device hardware

Google Pixel 7, Pixel 4a, Samsung S20, Samsung S25 Ultra

Which Android OS version are you using?

15

Unity Graphics API

Vulkan

Video API

media3/ExoPlayer

Texture format

BGRA

Audio output

System Direct

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

AutoOpen, AutoPlay enabled

Which output component(s) are you using?

Apply to Mesh

Any other component configuration required to reproduce the issue.

Setup of our Scene: Videoplayer in AR Scene with Apply to Mesh. Starting over Timeline with Mediareference.

The issue

When using Exoplayer on Android we have the following problem:

  • we start the “story”-Scene and play the video → then switch to UI Scene → restart the story Scene → the video don’t show up. The debug log in Logcat “Loading failed. File not found, codec not supported, video resolution too high or insufficient system resources” shows up.

Switching to MediaPlayer fixed the Problem, but causes another. Some Pause() and Stop() Events doesn’t work although debugging with Rider says Player has paused/stoped. (This Problem happens mainly on Samsung Devices Android 13 and 15, but sometimes also on Pixel 7)

Media information

No response

Logcat output


nara6500 avatar Jun 17 '25 14:06 nara6500

A full, unfiltered logcat in txt format would be helpful

Chris-RH avatar Jun 17 '25 15:06 Chris-RH

I send you an email with the logcat data and a video.

nara6500 avatar Jun 18 '25 09:06 nara6500

Thank you so much for the email support! CloseMedia with all active and inactive mediaplayer fixed it.

nara6500 avatar Jun 25 '25 08:06 nara6500