Created
January 23, 2021 15:04
-
-
Save rebelchris/72106a6bff40572c9d0303172c266bcc to your computer and use it in GitHub Desktop.
Stop video function
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
const stopVideo = () => { | |
rtc.localVideoTrack.close(); | |
rtc.client.unpublish(rtc.localVideoTrack); | |
btnCam.classList.remove("active"); | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment