```js
async toggleVideoCam() {

    if (this.rtc.localVideoTrack) {
      await this.rtc.client.localVideoTrack.setEnabled(false);
      this.rtc.localVideoTrack.close();
      document.getElementById('localvideo').remove();
    } else {
      await this.rtc.client.localVideoTrack.setEnabled(true);

      const playerContainer = document.createElement('div');
      const userIdContainer = document.createElement('span');
      userIdContainer.className = 'user-id-holder';
      playerContainer.className = 'localUserVideo';
      let liveStreamContainer = document.querySelector('.videoTracks-container');

      playerContainer.id = 'localvideo';
      userIdContainer.innerHTML = 'local video';
      playerContainer.append(userIdContainer);

      if (!document.getElementById(playerContainer.id)) {
        liveStreamContainer.append(playerContainer);
        // Play the local audio and video tracks
        // SDK dynamically creates a player in the container for playing the local video track
        this.rtc.localVideoTrack.play(playerContainer);
      }
    }
  }

```

Now I want to toggle publishing `localVideoTrack` how can I do that?
Yes, I have added a setEnabled method on localVideoTrack and I got cannot read a property setEnabled of undefined.