promise of this.camera.recordAsync is resolved when change Camera.Constants.Type


#1

I have this code
const video = await this.camera.recordAsync({ maxDuration: 30 })
but when I changed Camera.Constants.Type from back to front
the promise of this code is resolved and it stop the recording, but I need it to continue record when change constant type


#2

Hey @smnodame,

This is the current expected behavior: https://docs.expo.io/versions/v30.0.0/sdk/camera#recordasync Our Camera API doesn’t support switching Camera Type while recording.

Please feel free to create a Feature Request here https://expo.canny.io/feature-requests that states the desired behavior you want from the Camera API.

Cheers,

Adam


closed #3

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.