Example of MediaStreamTrack.prototype._switchCamera()?

Is there an example of implementing this API? I can’t find any documentation on how to implement switching cameras.

I figured it out. For anyone else looking, my implementation looks like this:

    handleSwithCamera = () => {
     const { localStream } = this.state;
     localStream.getVideoTracks().forEach((track) => {
     track._switchCamera()
  })
}
1 Like

Confirm, working on version 1.69.1