Created
September 10, 2020 02:06
-
-
Save kimberleehowley/930de72ccc7e3a3f6afb82ed7db9e870 to your computer and use it in GitHub Desktop.
Buttons that call call object methods in React video chat app powered by Daily
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
// In Tray.js | |
function toggleCamera() { | |
callObject.setLocalVideo(isCameraMuted); | |
} | |
function toggleMic() { | |
callObject.setLocalAudio(isMicMuted); | |
} | |
function toggleSharingScreen() { | |
isSharingScreen | |
? callObject.stopScreenShare() | |
: callObject.startScreenShare(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment