WebRTC - change video stream in the middle of communication
问题 My goal is to enable screen sharing in the middle of a video or audio call using webrtc web application . Well I found that I can use MediaStreamTrack.applyConstraints() to change video property but is it possible to change the video source ? further more how can I add video to an existing audio stream . I need this to work on chrome only for now . 回答1: As of today, I feel a better approach for your case would be to use the RTCRtpSender.replaceTrack method. Assuming your camera stream is