Created
June 12, 2017 15:13
-
-
Save lyokato/451c65611d2cc0738c7adb99320ac5c4 to your computer and use it in GitHub Desktop.
WebRTC Local Video Setup With Filter
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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