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

Unable to record video #11

Closed
MadCoderNS opened this issue Jul 25, 2022 · 3 comments
Closed

Unable to record video #11

MadCoderNS opened this issue Jul 25, 2022 · 3 comments
Labels
android bug Something isn't working

Comments

@MadCoderNS
Copy link

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

@ridvanaltun
Copy link
Owner

Hi @MadCoderNS !

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

@ridvanaltun ridvanaltun added bug Something isn't working android labels Jul 25, 2022
@MadCoderme
Copy link

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

@ridvanaltun
Copy link
Owner

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 🤷‍♂️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
android bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants