implementations for most platforms including Linux, Mac, Windows, iOS and Android, but what if we want to use our own video capture source such as a frame-grabber, or OpenCV or FFmpeg?
Linux、Mac、Windows、iOS、Androidなど、ほとんどのプラットフォームに実装できますが、フレームグラバー、OpenCV、FFmpegなどの独自のビデオキャプチャソースを使用する場合はどうなりますか。
The good news is that it’s quite easy, all you need to do is override the cricket::VideoCapturer class and create a custom cricket::VideoCapturerFactory for attaching to the cricket::DeviceManagerInterface.
幸い、cricket :: VideoCapturerクラスをオーバーライドして、cricket :: DeviceManagerInterfaceにアタッチするためのカスタムcricket :: VideoCapturerFactoryを作成するだけです。
The code below can be used as a replacement for the default cricket::VideoCapturer that’s used by the peerconnection_client example that’s distributed with the WebRTC source.