disable frame processor jni bindings, preserve video pipeline registration

This commit is contained in:
2025-11-24 10:30:33 -08:00
parent 3d09106e45
commit 35d80b13d6
4 changed files with 20 additions and 13 deletions

View File

@@ -29,10 +29,16 @@ class CameraViewModule(reactContext: ReactApplicationContext) : ReactContextBase
var sharedRequestCode = 10
init {
// Skip loading native library for React Native 0.79+ compatibility
// Frame Processors are disabled (react-native-worklets-core not installed)
// The native library has incompatible JNI signatures for RN 0.79+
Log.i(TAG, "VisionCamera native library not loaded - Frame Processors disabled for RN 0.79+ compatibility")
try {
// Load the native part of VisionCamera.
// Includes the OpenGL VideoPipeline (needed for video recording)
// Frame Processors remain disabled for RN 0.79+ compatibility
System.loadLibrary("VisionCamera")
Log.i(TAG, "VisionCamera native library loaded successfully")
} catch (e: UnsatisfiedLinkError) {
Log.e(TAG, "Failed to load VisionCamera C++ library!", e)
throw e
}
}
}