How to use a “custom” video capture tool to create a video driver and provide frames?
The classic approach to creating VideoTrack:
1 - Get an instance of VideoCapturer
VideoCapturer capturer = VideoCapturer.create(name);
2 - Create a VideoSource
VideoSource videoSource = peerconnectionFactory.createVideoSource(capturer, videoConstraints);
3 - Create a VideoTrack using a video source
VideoTrack videoTrack = peerconnectionFactory.createVideoTrack("Label", videoSource);
4 - add track to MediaStream
I was wondering if there is a way to change step one . Instead of using a native Capturer instance, use Android one and provide VideoTrack frames with a callback:
public void onPreviewFrame(byte[] data, Camera camera) {
Any suggestions?
android webrtc libjingle
Manza May 14 '14 at 12:13 2014-05-14 12:13
source share