webkit  2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
Classes | Public Member Functions | List of all members
org.webrtc.VideoCapturer Interface Reference
Inheritance diagram for org.webrtc.VideoCapturer:
org.webrtc.CameraVideoCapturer org.webrtc.FileVideoCapturer org.webrtc.ScreenCapturerAndroid org.webrtc.VideoCapturerAndroid

Classes

class  AndroidVideoTrackSourceObserver
 
interface  CapturerObserver
 

Public Member Functions

void initialize (SurfaceTextureHelper surfaceTextureHelper, Context applicationContext, CapturerObserver capturerObserver)
 
void startCapture (int width, int height, int framerate)
 
void stopCapture () throws InterruptedException
 
void changeCaptureFormat (int width, int height, int framerate)
 
void dispose ()
 
boolean isScreencast ()
 

Member Function Documentation

◆ changeCaptureFormat()

void org.webrtc.VideoCapturer.changeCaptureFormat ( int  width,
int  height,
int  framerate 
)

◆ dispose()

void org.webrtc.VideoCapturer.dispose ( )

Perform any final cleanup here. No more capturing will be done after this call.

Implemented in org.webrtc.VideoCapturerAndroid, org.webrtc.FileVideoCapturer, and org.webrtc.ScreenCapturerAndroid.

◆ initialize()

void org.webrtc.VideoCapturer.initialize ( SurfaceTextureHelper  surfaceTextureHelper,
Context  applicationContext,
CapturerObserver  capturerObserver 
)

This function is used to initialize the camera thread, the android application context, and the capture observer. It will be called only once and before any startCapture() request. The camera thread is guaranteed to be valid until dispose() is called. If the VideoCapturer wants to deliver texture frames, it should do this by rendering on the SurfaceTexture in |surfaceTextureHelper|, register itself as a listener, and forward the texture frames to CapturerObserver.onTextureFrameCaptured().

Implemented in org.webrtc.VideoCapturerAndroid, and org.webrtc.FileVideoCapturer.

◆ isScreencast()

boolean org.webrtc.VideoCapturer.isScreencast ( )
Returns
true if-and-only-if this is a screen capturer.

Implemented in org.webrtc.VideoCapturerAndroid, org.webrtc.FileVideoCapturer, and org.webrtc.ScreenCapturerAndroid.

◆ startCapture()

void org.webrtc.VideoCapturer.startCapture ( int  width,
int  height,
int  framerate 
)

Start capturing frames in a format that is as close as possible to |width| x |height| and |framerate|.

Implemented in org.webrtc.VideoCapturerAndroid, org.webrtc.FileVideoCapturer, and org.webrtc.ScreenCapturerAndroid.

◆ stopCapture()

void org.webrtc.VideoCapturer.stopCapture ( ) throws InterruptedException

Stop capturing. This function should block until capture is actually stopped.

Implemented in org.webrtc.VideoCapturerAndroid, org.webrtc.FileVideoCapturer, and org.webrtc.ScreenCapturerAndroid.


The documentation for this interface was generated from the following file: