Skip to content

Instantly share code, notes, and snippets.

@lyokato
Created June 12, 2017 15:13
Show Gist options
  • Save lyokato/451c65611d2cc0738c7adb99320ac5c4 to your computer and use it in GitHub Desktop.
Save lyokato/451c65611d2cc0738c7adb99320ac5c4 to your computer and use it in GitHub Desktop.
WebRTC Local Video Setup With Filter
RTCVideoSource *source = [factory videoSource];
// VideoSourceからFilterを準備し
MyVideoSourceFilter *filter = [[MyVideoSourceFilter alloc] initWithSource:source];
// Capturerには、Filterを渡す
RTCVideoCapturer *capturer = [[RTCCameraVideoCapturer alloc] initWithDelegate:filter];
RTCVideoTrack *trakc = [factory videoTrackWithSource:source trackId:trackId];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment