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
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidonCapturerStarted(boolean success) Notify if the capturer have been started successfully or not.voidNotify that the capturer has been stopped.voidonFrameCaptured(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:CapturerObserverNotify if the capturer have been started successfully or not.- Specified by:
onCapturerStartedin interfaceCapturerObserver
-
onCapturerStopped
public void onCapturerStopped()Description copied from interface:CapturerObserverNotify that the capturer has been stopped.- Specified by:
onCapturerStoppedin interfaceCapturerObserver
-
onFrameCaptured
Description copied from interface:CapturerObserverDelivers a captured frame.- Specified by:
onFrameCapturedin interfaceCapturerObserver
-