BabylonReactNative icon indicating copy to clipboard operation
BabylonReactNative copied to clipboard

Frame Width and Height not updated when changed in the middle of an ongoing capture session

Open bonnyMahajan10 opened this issue 4 years ago • 1 comments

Observed from ARViewTest App. If I start a NativeCaptureSession when in Portrait mode on my phone, and switch while the session is ongoing - the variables for capturedFrame.width and capturedFrame.height remain the same as they were at the start of the session (instead of being updated). I imagine if my phone changes orientation (say portrait to landscape or vice versa) - these variable should (roughly not exactly) switch.

bonnyMahajan10 avatar Jun 02 '21 19:06 bonnyMahajan10

For our use case, we lock device orientation when capturing videos. By not doing so, the following artifacts can be observed when capturing frames and switching orientation (portrait to landscape):

https://user-images.githubusercontent.com/2365108/139757668-5b0ca382-56f1-42ca-a3e9-ccc1af047db5.mp4

Are there any safeguards that can be introduced on the Babylon Native side, or is our workaround of locking the device orientation while capturing videos sufficient?

andrewmo2014 avatar Nov 02 '21 00:11 andrewmo2014

Closing since this is a short-term solution and thus a short-term issue.

bghgary avatar Apr 16 '24 17:04 bghgary