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

An error occurred while playing the video on the PC virtual machine

Open MYR1105d opened this issue 1 year ago • 9 comments

Describe the issue An error occurred while playing the video on the PC virtual machine. The video is loaded locally using the StreamingAsset method.But it runs normally on a standard Android device.

Your Setup (please complete the following information):

  • Unity version: Unity 2021.3.6f1
  • AVPro Video version (number and edition (trial/core/ultra/enterprise)): AVPro Video v3 - Ultra Edition 3.0.8

Logs

Exception: AndroidJavaException: java.lang.UnsatisfiedLinkError: dlopen failed: "/data/app/com.DefaultCompany.StudyProject-1/lib/arm/libAVProVideo2Native.so" has unexpected e_machine: 40


java.lang.UnsatisfiedLinkError: dlopen failed: "/data/app/com.DefaultCompany.StudyProject-1/lib/arm/libAVProVideo2Native.so" has unexpected e_machine: 40
java.lang.Runtime.loadLibrary0(Runtime.java:989)
java.lang.System.loadLibrary(System.java:1562)
com.renderheads.AVPro.Video.Manager.<clinit>(SourceFile)
com.unity3d.player.UnityPlayer.nativeRender(Native Method)
com.unity3d.player.UnityPlayer.access$300(Unknown Source)
com.unity3d.player.UnityPlayer$e$1.handleMessage(Unknown Source)
android.os.Handler.dispatchMessage(Handler.java:98)
android.os.Looper.loop(Looper.java:154)
com.unity3d.player.UnityPlayer$e.run(Unknown Source)
UnityEngine.AndroidJNISafe.CheckException () (at <00000000000000000000000000000000>:0)
UnityEngine.AndroidJNISafe.NewObject (System.IntPtr clazz, System.IntPtr methodID, UnityEngine.jvalue[] args) (at <00000000000000000000000000000000>:0)
UnityEngine.AndroidJavaObject._AndroidJavaObject (System.String className, System.Object[] args) (at <00000000000000000000000000000000>:0)
RenderHeads.Media.AVProVideo.PlatformMediaPlayer+Native.AVPPluginBootstrap () (at <00000000000000000000000000000000>:0)
RenderHeads.Media.AVProVideo.PlatformMediaPlayer..cctor () (at <00000000000000000000000000000000>:0)
RenderHeads.Media.AVProVideo.MediaPlayer.CreateMediaPlayer () (at <00000000000000000000000000000000>:0)
RenderHeads.Media.AVProVideo.MediaPlayer.Initialise () (at <00000000000000000000000000000000>:0)
RenderHeads.Media.AVProVideo.MediaPlayer.Start () (at <00000000000000000000000000000000>:0)
Rethrow as TypeInitializationException: The type initializer for 'RenderHeads.Media.AVProVideo.PlatformMediaPlayer' threw an exception.
RenderHeads.Media.AVProVideo.MediaPlayer.CreateMediaPlayer () (at <00000000000000000000000000000000>:0)
RenderHeads.Media.AVProVideo.MediaPlayer.Initialise () (at <00000000000000000000000000000000>:0)
RenderHeads.Media.AVProVideo.MediaPlayer.Start () (at <00000000000000000000000000000000>:0)

MYR1105d avatar Aug 06 '24 08:08 MYR1105d

What device are you running it on? What VM are you using?

Chris-RH avatar Aug 06 '24 09:08 Chris-RH

It's the pc Android emulator.

MYR1105d avatar Aug 07 '24 02:08 MYR1105d

What hardware are you running? Which OS version? Which android emulator software are you running? What device are you trying to emulate?

Chris-RH avatar Aug 07 '24 08:08 Chris-RH

Using Windows 10 system, some Android simulators have some problems, such as: night God simulator, thunder simulator, simulator website: https://www.yeshen.com, https://www.ldmnq.com/?n=401674

MYR1105d avatar Aug 07 '24 09:08 MYR1105d

Are you saying that some simulators are working? Have you tried the simulator in Android Studio? Is there a reason that you are testing on simulators rather than actual devices?

Chris-RH avatar Aug 08 '24 08:08 Chris-RH

Android Studio has not been tried, but tested on the emulator because some players will use the emulator to play.

MYR1105d avatar Aug 08 '24 11:08 MYR1105d

Also found it crash in MUMU simulator https://mumu.163.com/

buoutuanzi avatar Aug 09 '24 01:08 buoutuanzi

The problem is that our asset is designed to be used on physical devices, not emulators. Android Studio android simulator is ok for doing some testing on, but the end target should be a physical device. Is there a reason that you are not targeting the platforms that they are using emulators on?

Chris-RH avatar Aug 09 '24 11:08 Chris-RH

The problem is that our asset is designed to be used on physical devices, not emulators. Android Studio android simulator is ok for doing some testing on, but the end target should be a physical device. Is there a reason that you are not targeting the platforms that they are using emulators on?

Those who are not familiar with PC tend to choose using an emulator to play the mobile version of the game rather than downloading the PC version, so we hope to support emulators.

buoutuanzi avatar Aug 12 '24 03:08 buoutuanzi

  1. Can you reproduce this in a new project running only the AVPro Video demo scenes?
  2. Have you tried both Vulkan and OpenGLES?
  3. Are you building Mono or IL2CPP?
  4. Have you tried streaming videos (test streams here)
  5. Are you having the issue with all of the emulators you have tried, or just some of them? Which ones work/don't work? Are you getting the same error messages?

I'm not sure that it will work at all, as in the Unity manual under system requirements, it states "Hardware must be running Android OS natively. With the exception of Android for Chrome OS, Android within a container or emulator isn’t supported."

Chris-RH avatar Sep 02 '24 11:09 Chris-RH

We think this is the same issue as #1994 and hope to have a fix for this soon.

Ste-RH avatar Sep 09 '24 10:09 Ste-RH

We've fixed the issue with running using the Google Android emulator which we hope will resolve the issues seen with other emulators, this will make it into the next release (3.0.11).

MorrisRH avatar Sep 09 '24 14:09 MorrisRH

@MYR1105d AVPro Video v3.0.11 has now been released. Do let us know if this fixes the issue for you.

Ste-RH avatar Sep 12 '24 16:09 Ste-RH