ridvanaltun / react-native-deepar

Snapchat-like filters, AR lenses, and real-time facial animations.

Home Page:https://deepar.ai

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Unable to record video

MadCoderNS opened this issue · comments

I am getting this error while trying to start recording video

Could not record video! 
Stack trace: [libcore.io.IoBridge.open(IoBridge.java:492), java.io.RandomAccessFile.<init>(RandomAccessFile.java:289), java.io.RandomAccessFile.<init>(RandomAccessFile.java:152), android.media.MediaMuxer.<init>(MediaMuxer.java:356), ai.deepar.ar.MediaMuxerWrapper.<init>(MediaMuxerWrapper.java:59), ai.deepar.ar.DeepAR.startVideoRecording(DeepAR.java:1291), ai.deepar.ar.DeepAR.startVideoRecording(DeepAR.java:1215), com.reactnativedeepar.RNTDeepAR.startRecording(RNTDeepAR.java:301), com.reactnativedeepar.RNTDeepARViewManager.receiveCommand(RNTDeepARViewManager.java:199), com.reactnativedeepar.RNTDeepARViewManager.receiveCommand(RNTDeepARViewManager.java:27), com.facebook.react.uimanager.NativeViewHierarchyManager.dispatchCommand(NativeViewHierarchyManager.java:831), com.facebook.react.uimanager.UIViewOperationQueue$DispatchCommandOperation.executeWithExceptions(UIViewOperationQueue.java:323), com.facebook.react.uimanager.UIViewOperationQueue$1.run(UIViewOperationQueue.java:879), com.facebook.react.uimanager.UIViewOperationQueue.flushPendingBatches(UIViewOperationQueue.java:1026), com.facebook.react.uimanager.UIViewOperationQueue.access$2600(UIViewOperationQueue.java:47), com.facebook.react.uimanager.UIViewOperationQueue$DispatchUIFrameCallback.doFrameGuarded(UIViewOperationQueue.java:1086), com.facebook.react.uimanager.GuardedFrameCallback.doFrame(GuardedFrameCallback.java:29), com.facebook.react.modules.core.ReactChoreographer$ReactChoreographerDispatcher.doFrame(ReactChoreographer.java:175), com.facebook.react.modules.core.ChoreographerCompat$FrameCallback$1.doFrame(ChoreographerCompat.java:85), android.view.Choreographer$CallbackRecord.run(Choreographer.java:1159), android.view.Choreographer.doCallbacks(Choreographer.java:983), android.view.Choreographer.doFrame(Choreographer.java:904), android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:1146), android.os.Handler.handleCallback(Handler.java:938), android.os.Handler.dispatchMessage(Handler.java:99), android.os.Looper.loop(Looper.java:263), android.app.ActivityThread.main(ActivityThread.java:8292), java.lang.reflect.Method.invoke(Native Method), com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:612), com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1006)]

I am using the latest version of this package, React Native version: 0.69.0

Hi @MadCoderNS !

Can you try the example app? Installing instructions here: https://github.com/ridvanaltun/react-native-deepar#example-app

I was able to solve the issue by removing videoWarmupEnabled={true} . I was using Android device, probably that was the issue.

I was able to solve the issue by removing videoWarmupEnabled={true} . I was using Android device, probably that was the issue.

I'm surprised because videoWarmupEnabled should not affect anything in Android. I'm going to close this issue anyway 🤷‍♂️