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

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

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 Feature Requests | Expo that states the desired behavior you want from the Camera API.

Cheers,

Adam

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