Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for Audio config #6

Closed
ujizin opened this issue Dec 30, 2022 · 1 comment
Closed

Add support for Audio config #6

ujizin opened this issue Dec 30, 2022 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@ujizin
Copy link
Owner

ujizin commented Dec 30, 2022

Is your feature request related to a problem? Please describe.

Currently, there's no way to disable/enable audio in Camposer

Describe the solution you'd like

Add audio config parameter when starting recording video

Describe alternatives you've considered
None.

Are you willing to provide a PR?

Yes, however, I'm waiting for release 1.3.0 stable because it'll be added the parameter on CameraController.

@ujizin ujizin added the enhancement New feature or request label Dec 30, 2022
@ujizin ujizin self-assigned this Dec 30, 2022
@ujizin
Copy link
Owner Author

ujizin commented Jan 14, 2024

With the new release 0.4.0, now it's possible for using audio config on video capture!

To implement, just set on CameraState.startRecording method

cameraState.startRecording(fileOutputOptions, AudioConfig.create(true)) { result ->

}

You can also unmute and mute the audio using cameraState.muteRecording(muted: Boolean) method

@ujizin ujizin closed this as completed Jan 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant