Created
January 23, 2021 15:02
-
-
Save rebelchris/9641fdd150da32e25b65ed5a6b4a16f7 to your computer and use it in GitHub Desktop.
Start audio 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 startAudio = async () => { | |
| rtc.localAudioTrack = await AgoraRTC.createMicrophoneAudioTrack(); | |
| rtc.client.publish(rtc.localAudioTrack); | |
| btnMic.classList.add("active"); | |
| }; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment