Closed michaelbaisch closed 1 year ago
@michaelbaisch doesn't seem to be working, I am able to change the resolution from other apps.
Even if I disable the unlockForConfiguration
line
The problem this is trying to fix is when you configure a resolution in another app and then open CameraController or select a camera there, it just overwrites the setting from the other app. This is trying to not overwrite the setting/configuration from another app and leave the resolution as it was configured in the other app.
@michaelbaisch sorry for the delay, but I finally understood the idea of this PR, merging it now
Before this change, changes of the camera resolution in another program would be overridden every time a camera is selected here.