Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not working with 2019.3 #2

Open
CenekStrichel opened this issue May 18, 2020 · 1 comment
Open

Not working with 2019.3 #2

CenekStrichel opened this issue May 18, 2020 · 1 comment

Comments

@CenekStrichel
Copy link

Hello, it looks like a great plugin. But it is not working with current Unity. Do you plan some update?

2020.05.18 03:18:55.622 3932 3979 Error MediaRecorder start called in an invalid state: 32 2020.05.18 03:18:55.739 3932 3979 Error Unity AndroidJavaException: java.lang.IllegalStateException 2020.05.18 03:18:55.739 3932 3979 Error Unity java.lang.IllegalStateException 2020.05.18 03:18:55.739 3932 3979 Error Unity at android.media.MediaRecorder.start(Native Method) 2020.05.18 03:18:55.739 3932 3979 Error Unity at com.techgeekfreax.screenrecorder.screenrecorderlib.AndroidUtils.startRecording(AndroidUtils.java:134) 2020.05.18 03:18:55.739 3932 3979 Error Unity at com.unity3d.player.UnityPlayer.nativeRender(Native Method) 2020.05.18 03:18:55.739 3932 3979 Error Unity at com.unity3d.player.UnityPlayer.access$300(Unknown Source:0) 2020.05.18 03:18:55.739 3932 3979 Error Unity at com.unity3d.player.UnityPlayer$e$1.handleMessage(Unknown Source:95) 2020.05.18 03:18:55.739 3932 3979 Error Unity at android.os.Handler.dispatchMessage(Handler.java:103) 2020.05.18 03:18:55.739 3932 3979 Error Unity at android.os.Looper.loop(Looper.java:214) 2020.05.18 03:18:55.739 3932 3979 Error Unity at com.unity3d.player.UnityPlayer$e.run(Unknown Source:20) 2020.05.18 03:18:55.739 3932 3979 Error Unity at UnityEngine.AndroidJNISafe.CheckException () [0x00096] in <3c22a197ab60454cb70124c69f2248be>:0 2020.05.18 03:18:55.739 3932 3979 Error Unity at UnityEngine.AndroidJNISafe.CallVoidMethod (System.IntPtr obj, System.IntPtr methodID, UnityEngine.jvalue[] args) [0x0000f] in <3c22a197ab60454cb70124c69f2248be>:0 2020.05.18 03:18:55.739 3932 3979 Error Unity at UnityEngine.AndroidJavaObject._Call (System.String methodName, System.Object[] args) [0x00038] in <3c22a197ab60454cb70124c69f2248be>:0 2020.05.18 03:18:55.739 3932 3979 Error Unity at Un

@KartikShrivastava
Copy link
Owner

KartikShrivastava commented Sep 27, 2020

Hi @CenekStrichel ,
I've just built the plugin with Unity2019.2 and it's working fine for me. I guess that your issue is related with your jdk configuration, also make sure to use API level higher than 21 while building the plugin in any android device.
As of now plugin is saving the recorded videos in a folder named Pikamoji_Moments you can change it from convertToAAC method in AndroidUtils.java class of android studio project (need to compile .aar file again).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants