RenderHeads / UnityPlugin-AVProVideo

AVPro Video is a multi-platform Unity plugin for advanced video playback
https://www.renderheads.com/products/avpro-video/
235 stars 28 forks source link

AVPro wont work in React Native #794

Closed rhysturner closed 3 years ago

rhysturner commented 3 years ago

Describe the issue AVPro suport on Android in a React Native Project

Your Setup (please complete the following information):

To Reproduce

  1. Export project as a libary as per this https://github.com/asmadsen/react-native-unity-view
  2. Build in React Native project with yarn android
  3. No video loaded and exception thrown

Note: AVPRo in React Native works fine in iOS but just not in Android.

Logs UnityEngine.AndroidJavaException: java.lang.ClassNotFoundException: com.renderheads.AVPro.Video.Manager at UnityEngine.AndroidJNISafe.CheckException () [0x00096] in <64438264e25a42398aa0824121908267>:0 at UnityEngine.AndroidJNISafe.FindClass (System.String name) [0x0000c] in <64438264e25a42398aa0824121908267>:0 at UnityEngine.AndroidJavaObject._AndroidJavaObject (System.String className, System.Object[] args) [0x0002d] in <64438264e25a42398aa0824121908267>:0 at UnityEngine.AndroidJavaObject..ctor (System.String className, System.Object[] args) [0x00008] in <64438264e25a42398aa0824121908267>:0 at RenderHeads.Media.AVProVideo.AndroidMediaPlayer.InitialisePlatform () [0x00040] in :0 at RenderHeads.Media.AVProVideo.MediaPlayer.CreateMediaPlayer (RenderHeads.Media.AVProVideo.MediaPlayer+OptionsAndroid options) [0x00002] in :0 at RenderHeads.Media.AVProVideo.MediaPlayer.CreateMediaPlayer () [0x00002] in :0 at RenderHeads.Media.AVProVideo.MediaPlayer.Initialise () [0x00000] in :0 at RenderHeads.Media.AVProVideo.MediaPlayer.OpenMedia (RenderHeads.Media.AVProVideo.MediaPathType pathType, System.String path, System.Boolean autoPlay) [0x0002e] in :0 at VideoControllerInput.LoadMovie (System.String mp4Str) [0x00031] in :0

Videos Any of the sample mp4s

Ste-RH commented 3 years ago

'ClassNotFoundException' suggests that the AVPro Video plugins are not making it to the build.

Can you check to see if they APK contains them? Or if you want to send us an APK to check, email it over to unitysupport@renderheads.com and mark the subject #794.

Are you building your Android build for ARM7, ARM64, x86? Or indeed a combination?

stale[bot] commented 3 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

kahnivore commented 3 years ago

Closing this as no response has been received.