-
-
Save skydoves/feb1c9acabd3cda0697886cc855be2db to your computer and use it in GitHub Desktop.
enable_camera
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Copyright 2023 Stream.IO, Inc. All Rights Reserved. | |
// SPDX-License-Identifier: Apache-2.0 | |
override fun enableCamera(enabled: Boolean) { | |
if (enabled) { | |
videoCapturer.startCapture(resolution.width, resolution.height, 30) | |
} else { | |
videoCapturer.stopCapture() | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment