Package org.webrtc
Class NativeCapturerObserver
java.lang.Object
org.webrtc.NativeCapturerObserver
- All Implemented Interfaces:
CapturerObserver
Used from native api and implements a simple VideoCapturer.CapturerObserver that feeds frames to
a webrtc::jni::AndroidVideoTrackSource.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
onCapturerStarted
(boolean success) Notify if the capturer have been started successfully or not.void
Notify that the capturer has been stopped.void
onFrameCaptured
(VideoFrame frame) Delivers a captured frame.
-
Field Details
-
nativeAndroidVideoTrackSource
-
-
Constructor Details
-
NativeCapturerObserver
public NativeCapturerObserver(long nativeSource)
-
-
Method Details
-
onCapturerStarted
public void onCapturerStarted(boolean success) Description copied from interface:CapturerObserver
Notify if the capturer have been started successfully or not.- Specified by:
onCapturerStarted
in interfaceCapturerObserver
-
onCapturerStopped
public void onCapturerStopped()Description copied from interface:CapturerObserver
Notify that the capturer has been stopped.- Specified by:
onCapturerStopped
in interfaceCapturerObserver
-
onFrameCaptured
Description copied from interface:CapturerObserver
Delivers a captured frame.- Specified by:
onFrameCaptured
in interfaceCapturerObserver
-