In the camera application I'm working on, I have implemented an option to include/exclude audio from the video recording the user captures.
Ideally, since I'm calling `withAudioEnabled()` on a fresh `PendingRecording` instance, it should be off by default and should only include audio if `withAudioEnabled()` gets called on it, however once the audio gets enabled it continues to remain enabled until the camera is restarted even on a fresh `PendingRecording` instance.
To reproduce this issue one could comment out this line and test the app and then try testing the app after uncommenting it to get a clearer idea of the issue:
(The include audio option will be present in the settings when in video mode)
If this is how it was meant to be or if this config can't be changed without restarting the camera, you'll could maybe try re-locating the `withAudioEnabled()` method to the `VideoCapture` or `Recorder` class (not sure how technically feasible would it be though). However, if the config. can be changed without restarting the camera then we could either add a way to disable it or maybe turn it off by default while preparing a new recording.
Hope this issue gets resolved soon.
Thanks a lot in advance.
Regards,
Mohit