Wowza Community

addTrack is throw error at setLocalDescription

I’d like to change the video track as a canvas stream track at the same stream.
and I’ve followed sample Wowza webrtc code.

const stream = canvas.value.captureStream(30);
const videoTrack = stream.getVideoTracks()[0];
this.videoSender = this.peerConnection.addTrack(videoTrack)

but it throws

Error: Failed to execute 'setLocalDescription' on 'RTCPeerConnection': Failed to set local offer sdp: Failed to set local video description recv parameters for m-section with mid='2'.

Does anyone know this issue? and solved?