Created
January 23, 2021 15:03
-
-
Save rebelchris/20ac7623fab4db84cf133f9d2136b7ca to your computer and use it in GitHub Desktop.
Leave function
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
| const leave = () => { | |
| stopVideo(); | |
| stopAudio(); | |
| rtc.client.leave(); | |
| btnStop.classList.add("hidden"); | |
| btnStart.classList.remove("hidden"); | |
| }; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment