I\'m trying to implement the functionality for muting the local video MediaStreamTrack in my WebRTC application. Here\'s how I\'m approaching this:
MediaStreamTrack
We solved this by tearing down the local media stream and creating it anew without the video track. Doing it mid-call requires either re-establishing the peer connection or performing renegotiation (triggered by sending a new offer).