Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Buttons that call call object methods in React video chat app powered by Daily
// 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
You can’t perform that action at this time.