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

When switching to the Mediaplayer video path on my Android build (quest 3) the app crashes.

Open phileday opened this issue 1 year ago • 10 comments

When switching to Media player from Exo player the app crashes immediately. Find below the Logcat when this happens. This does not happen on latest 2.x version.

OS - Android (Quest 3) Unity - 2022.3.27f1 AVPro version - 3 Video spec - N/A

Logcat information on the error

2024-06-09 20:30:58.441 23333-23351 AndroidRuntime com.Whirligig.Whirligig E FATAL EXCEPTION: UnityMain Process: com.Whirligig.Whirligig, PID: 23333 java.lang.NullPointerException: Attempt to invoke virtual method 'int java.lang.Integer.intValue()' on a null object reference at android.media.MediaFormat.getInteger(MediaFormat.java:1504) at com.renderheads.AVPro.Video.Player_MediaPlayer.onPrepared(Unknown Source:282) at android.media.MediaPlayer$EventHandler.handleMessage(MediaPlayer.java:3458) at android.os.Handler.dispatchMessage(Handler.java:106) at android.os.Looper.loopOnce(Looper.java:214) at android.os.Looper.loop(Looper.java:304) at com.unity3d.player.UnityPlayer$F.run(Unknown Source:24)

phileday avatar Jun 09 '24 19:06 phileday