How to modify (add filters to) the camera stream that WebRTC is sending to other peers/server
Scope I am using RTCCameraPreviewView to show the local camera stream let videoSource = self.pcFactory.avFoundationVideoSource(with: nil) let videoTrack = self.pcFactory.videoTrack(with: sVideoSource, trackId: "video0") //setting the capture session to my RTCCameraPreviewView: (self.previewView as! RTCCameraPreviewView).captureSession = (videoTrack.source as! RTCAVFoundationVideoSource).captureSession stream = self.pcFactory.mediaStream(withStreamId: "unique_label") audioTrack = self.pcFactory.audioTrack(withTrackId: "audio0") stream.addAudioTrack(audioTrack) var device: AVCaptureDevice? for