camera-preview icon indicating copy to clipboard operation
camera-preview copied to clipboard

Support orientation change

Open johnbyrne7 opened this issue 4 years ago • 2 comments

Managing orientation change is not natively supported. When device orientation changes, the preview size does not change. can that be added?

Alternatively, can you provide a preview restart() method that can be used to restart the preview, when my app detect orientation change? Doing a restart with stop(), start() is a bit complex, and I've run into null pointer issue

johnbyrne7 avatar Mar 10 '21 22:03 johnbyrne7

How does one use this option? I don't see this option listed in CameraPreviewOption in definition.d.ts? -Thanks

JRamQATestGal avatar Oct 06 '21 23:10 JRamQATestGal

This should be supported when these PRs are merged - https://github.com/capacitor-community/camera-preview/pull/235 and https://github.com/capacitor-community/camera-preview/pull/238 (those are related to https://github.com/capacitor-community/camera-preview/issues/232 and https://github.com/capacitor-community/camera-preview/issues/93 subsequently).

Can someone please test installing as described here https://github.com/capacitor-community/camera-preview/issues/93#issuecomment-1190518846 and let me know if these changes enable orientation change support? Thank you

ryaa avatar Jul 20 '22 17:07 ryaa