webkit
2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
|
Inherits org.webrtc.VideoRenderer.Callbacks.
Classes | |
interface | FrameListener |
Public Member Functions | |
EglRenderer (String name) | |
void | init (final EglBase.Context sharedContext, final int[] configAttributes, RendererCommon.GlDrawer drawer) |
void | createEglSurface (Surface surface) |
void | createEglSurface (SurfaceTexture surfaceTexture) |
void | release () |
void | printStackTrace () |
void | setMirror (final boolean mirror) |
void | setLayoutAspectRatio (float layoutAspectRatio) |
void | setFpsReduction (float fps) |
void | disableFpsReduction () |
void | pauseVideo () |
void | addFrameListener (final FrameListener listener, final float scale) |
void | addFrameListener (final FrameListener listener, final float scale, final RendererCommon.GlDrawer drawer) |
void | removeFrameListener (final FrameListener listener) |
void | renderFrame (VideoRenderer.I420Frame frame) |
void | releaseEglSurface (final Runnable completionCallback) |
void | clearImage () |
Implements org.webrtc.VideoRenderer.Callbacks by displaying the video stream on an EGL Surface. This class is intended to be used as a helper class for rendering on SurfaceViews and TextureViews.
|
inline |
|
inline |
Register a callback to be invoked when a new video frame has been received. This version uses the drawer of the EglRenderer that was passed in init.
|
inline |
|
inline |
Post a task to clear the TextureView to a transparent uniform color.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Block until any pending frame is returned and all GL resources released, even if an interrupt occurs. If an interrupt occurs during release(), the interrupt flag will be set. This function should be called before the Activity is destroyed and the EGLContext is still valid. If you don't call this function, the GL resources might leak.
Release EGL surface. This function will block until the EGL surface is released.
|
inline |
Remove any pending callback that was added with addFrameListener. If the callback is not in the queue, nothing happens. It is ensured that callback won't be called after this method returns.
runnable | The callback to remove. |
|
inline |
|
inline |
Limit render framerate.
fps | Limit render framerate to this value, or use Float.POSITIVE_INFINITY to disable fps reduction. |
|
inline |
Set layout aspect ratio. This is used to crop frames when rendering to avoid stretched video. Set this to 0 to disable cropping.
Set if the video stream should be mirrored or not.