Updating targetRotation of videoCapture

265 views
Skip to first unread message
Assigned to leoh...@google.com by wuj...@google.com

Mohit Shetty

unread,
Nov 2, 2021, 1:49:11 PM11/2/21
to Android CameraX Discussion Group
Our camera application requires to dynamically update the targetRotation based on the device orientation before the recording starts (so that the gallery renders the correct orientation). To achieve this, we update the targetRotation of the videoCapture object when the orientation changes. 

From what I have tested on my Pixel 4a, it seems that just updating the targetRotation of the VideoCapture object helps resolves this as an issue. But is there any reason why the `setTargetRotation` method was restricted to library scope? By any chance, are we supposed to use another way to update the target rotation for this use case or maybe adding this annotation was purely accidental?

Leo Huang

unread,
Nov 5, 2021, 3:53:27 AM11/5/21
to Android CameraX Discussion Group, shetty...@gmail.com
Thank you for reporting. We are still under discussion about the video rotation API.
Consider it as a feature request and created https://issuetracker.google.com/205242781 to track it.


shetty...@gmail.com 在 2021年11月3日 星期三上午1:49:11 [UTC+8] 的信中寫道:

Mohit Shetty

unread,
Nov 5, 2021, 4:39:27 AM11/5/21
to Android CameraX Discussion Group, leoh...@google.com, Mohit Shetty
Sure, will eagerly be waiting to know what changes shall be made the library to publicly introduce this API/function.

Thanks a lot for considering this change/feature request!

Regards,
Mohit

Reply all
Reply to author
Forward
0 new messages