You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"Position: front" doesn't work on android. Camera Preview shows rear camera and when video is recorded it's turned upside down. it works as expected on IOS.
Dear cap-go team! Please check this issue.
Android version 13
"@capacitor/app": "^6.0.0"
"@capgo/camera-preview": "^6.3.35"
"Position: front" doesn't work on android. Camera Preview shows rear camera and when video is recorded it's turned upside down. it works as expected on IOS.
the code example:
await CameraPreview.start({
toBack: false,
position: 'front',
width: window.screen.width - 40,
height: window.screen.height,
y: Capacitor.getPlatform() === 'android' ? 110 : 250,
x: Capacitor.getPlatform() === 'android' ? 20 : 30,
paddingBottom: Capacitor.getPlatform() === 'android' ? 310 : 300,
})
const recordVideo = async () => {
if (!Capacitor.isNativePlatform()) return
if (isVideoRecording.value) {
const result = await CameraPreview.stopRecordVideo()
} else {
const cameraPreviewOptions: CameraPreviewOptions = {}
await CameraPreview.startRecordVideo(cameraPreviewOptions)
isVideoRecording.value = true
}
}
Expected results:
position: front works as expected. video is not turned upside down.
The text was updated successfully, but these errors were encountered: