react-native-vision-camera icon indicating copy to clipboard operation
react-native-vision-camera copied to clipboard

✨ Support for iOS Simulators by simulating Camera Visuals

Open GrabbenD opened this issue 3 years ago • 6 comments

What feature or enhancement are you suggesting?

The ability to emulate a framebuffer for a virtual device in xCode's Simulator and Android Studio's Emulator would make it a lot easier to test if the app behaves correctly in a CICD environment. For instance, this could be achieved by adding support for debug mode with a prerecorded video or image file.

What Platforms whould this feature/enhancement affect?

iOS, Android

Alternatives/Workarounds

None

Additional information

GrabbenD avatar Sep 15 '21 16:09 GrabbenD

Hi! Thanks for the feature request, that's indeed something I'm also missing from VisionCamera!

If you want to take a look at this and implement this yourself, I'd gladly give any pointers and help you out! 💪

Until then, it stays a feature request until I have some free time to take a look at this (hopefully soon 😉)

mrousavy avatar Sep 15 '21 16:09 mrousavy

it would be fantastic if we could emulate a virtual scene in visio camera similar to the one we have in the android emulator, today it's not possible to test camera api on ios without physical hardware right?, and this kind of functionality would be a differential that no other camera lib for react native has

rodgomesc avatar Sep 15 '21 21:09 rodgomesc

My 2 cents: https://github.com/teslamotors/react-native-camera-kit somehow does it

xeroxoid avatar Nov 12 '21 08:11 xeroxoid

Please make this happen, it would make development so much easier

AdamSheaHewett avatar Jun 02 '22 11:06 AdamSheaHewett

yep, double thumbs up for this feature

rgomesrn avatar Jun 02 '22 11:06 rgomesrn

+1 to the request! 👍🏼

fervailanti avatar Jul 11 '22 07:07 fervailanti

+1, would be nice.

devartwa avatar Nov 14 '22 13:11 devartwa

+2 would be really nice to have this, not using this library because of the lack of simulator support

salorsino avatar Dec 27 '22 19:12 salorsino

Please stop spamming. This is a really nice feature request / nice-to-have, but I currently have other priorities (VisionCamera V3 and my company Margelo), if anyone wants to pay for the development of this feature let me know.

Otherwise I'll leave this open until someone submits a PR to implement this, or I have some free time sometime in the future.

mrousavy avatar Dec 28 '22 10:12 mrousavy

Update; VisionCamera will never support simulating the Camera on the iOS simulator as it is insanely complex to do that in VisionCamera since it is built upon a Devices API. More info here: https://github.com/mrousavy/react-native-vision-camera/pull/1848#issuecomment-1735162249

mrousavy avatar Sep 30 '23 09:09 mrousavy