Hello everyone, i am building a tiktok like camera app to record videos, And one of the functionalists i need to implement is switching the Camera lense (Front or back) during recording.
I tried to unbind and bind the new camera selector and uses cases but this caused audio and video being unaligned issue. So i went with another approach which's end the recording and start new one when the user flips the camera but it will require me to merge the videos segments at the end which takes time i tried to use FFmpeg to merge the videos without re-encoding them but i found out that videos taken by front camera are rotated.
Any suggestions on how to optmize this solution or another approach to achieve this with camerax?