Created
January 23, 2021 15:04
-
-
Save rebelchris/5c33f075e3417880cdc7836d81cfb746 to your computer and use it in GitHub Desktop.
Cam/mic buttons
This file contains hidden or 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
| btnCam.addEventListener("click", () => { | |
| btnCam.classList.contains("active") ? stopVideo() : startVideo(); | |
| }); | |
| btnMic.addEventListener("click", () => { | |
| btnMic.classList.contains("active") ? stopAudio() : startAudio(); | |
| }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment