Open matty0005 opened 4 years ago
Did you managed to make it work @matty0005 ?
@kriefsacha it's been a while since I worked on this project, but from what I remember I came up with a work-around.
I'd have to dig through my code to see what I did exactly, but it was something along the lines of setting the default camera to the rear, then after a short delay (something like 100ms), once the camera had been loaded, I would toggle the camera. This is all while the double tab switch option was disabled.
It seemed to work just fine and didn't run into many issues when testing it.
I am trying to implement the nativescript-camera-plus plugin and I want to have the front camera be the only option available. I have tried setting the default camera using
defaultCamera="front"
, but this has no effect. I have also tried thetoggleCamera()
function, but that also seems to do nothing. The only way I am able to switch cameras is by double tapping the camera preview.Here is a sample of my code
Any help would be appreciated