Create a WebRTC VideoTrack with a “custom” Capturer on Android with libjingle

前端 未结 1 1753
不知归路
不知归路 2020-12-15 02:47

How to use a \"custom\" video capturer to create a VideoTrack and provide frames?

The classic approach to create a VideoTrack is:

1 - Get a VideoCapt

相关标签:
1条回答
  • 2020-12-15 03:06

    The easiest way (although a bit "hacky") to do this is to copy the source of RTCVideoCapturer to a local class withing your project and just use that local class. You can now edit the class to suit your needs. Even when not copying the file but actually building your own, it's probably better to copy large parts of the existing capturer than to reinvent the wheel.

    0 讨论(0)
提交回复
热议问题