mrousavy / react-native-vision-camera

📸 A powerful, high-performance React Native Camera library.
https://react-native-vision-camera.com
MIT License
7.35k stars 1.07k forks source link

💭 Do you have any reference code for recording videos with overlays similar to Snapchat filters? When using the Skia frame processor, the front camera is displaying a black screen. #3154

Closed shishi-RN closed 1 month ago

shishi-RN commented 1 month ago

Question

💭 Do you have any reference code for recording videos with overlays similar to Snapchat filters? When using the Skia frame processor, the front camera is displaying a black screen.

What I tried

💭 Do you have any reference code for recording videos with overlays similar to Snapchat filters? When using the Skia frame processor, the front camera is displaying a black screen.

VisionCamera Version

^4.5.1

Additional information

maintenance-hans[bot] commented 1 month ago

Guten Tag, Hans here! 🍻

Thanks for your question. It seems like you are looking for reference code, but it would really help mrousavy if you could provide some additional information. You mentioned a black screen with the front camera when using the Skia frame processor, but I don't see any logs attached that might help diagnose the issue.

Please gather logs from either Xcode or adb logcat (depending on if you are using iOS or Android) and share them here. That way, we can better understand what might be going wrong.

Looking forward to your response!

Note: If you think I made a mistake, please ping @mrousavy to take a look.

mrousavy commented 1 month ago

There's a bunch of example repos out there I created for this. Skia Frame Processors is preview only though, see https://react-native-vision-camera.com/docs/guides/skia-frame-processors