webkit
2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
|
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 () |
void org.webrtc.VideoCapturer.changeCaptureFormat | ( | int | width, |
int | height, | ||
int | framerate | ||
) |
Implemented in org.webrtc.VideoCapturerAndroid, org.webrtc.FileVideoCapturer, and org.webrtc.ScreenCapturerAndroid.
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.
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.
boolean org.webrtc.VideoCapturer.isScreencast | ( | ) |
Implemented in org.webrtc.VideoCapturerAndroid, org.webrtc.FileVideoCapturer, and org.webrtc.ScreenCapturerAndroid.
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.
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.