Turn on/off the Camera

Hi, I am developing an video conferencing application for a social cause, using the Jitsi Meet API library. I need the ways to turn on/off the Camera. Can anyone please provide me a snippet for that.

var toggleCamera = (isTurnedOff) => {
    if (isTurnedOff) {
        this.tracks.local.video.mute();
    } else {
        this.tracks.local.video.unmute();
    }
};