Skip to content

Instantly share code, notes, and snippets.

@rebelchris
Created January 23, 2021 15:04
Show Gist options
  • Save rebelchris/5c33f075e3417880cdc7836d81cfb746 to your computer and use it in GitHub Desktop.
Save rebelchris/5c33f075e3417880cdc7836d81cfb746 to your computer and use it in GitHub Desktop.
Cam/mic buttons
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