public static interface WZRenderAPI.VideoFrameListener
Modifier and Type | Method and Description |
---|---|
boolean |
isWZVideoFrameListenerActive()
Indicates if the frame listener is active or not
onWZVideoFrameListenerFrameAvailable(WZGLES.EglEnv, WZSize, int, long) will only be called on an active listener |
void |
onWZVideoFrameListenerFrameAvailable(WZGLES.EglEnv eglEnv,
WZSize frameSize,
int frameRotation,
long timecodeNanos)
Called after a frame has been rendered to the current OpenGL ES surface
Note that eglEnv may differ at each call.
|
void |
onWZVideoFrameListenerInit(WZGLES.EglEnv eglEnv)
Called at the beginning of a rendering cycle
|
void |
onWZVideoFrameListenerRelease(WZGLES.EglEnv eglEnv)
Called at the end of a rendering cycle
|
boolean isWZVideoFrameListenerActive()
onWZVideoFrameListenerFrameAvailable(WZGLES.EglEnv, WZSize, int, long)
will only be called on an active listenervoid onWZVideoFrameListenerInit(WZGLES.EglEnv eglEnv)
eglEnv
- The current OpenGL ES environment. Note that this may be a different EglEnv than the one supplied with
each call to onWZVideoFrameListenerFrameAvailable(WZGLES.EglEnv, WZSize, int, long)
.
See onWZVideoFrameListenerFrameAvailable(WZGLES.EglEnv, WZSize, int, long)
for details.void onWZVideoFrameListenerFrameAvailable(WZGLES.EglEnv eglEnv, WZSize frameSize, int frameRotation, long timecodeNanos)
onWZVideoFrameListenerInit(WZGLES.EglEnv)
and onWZVideoFrameListenerRelease(WZGLES.EglEnv)
are shared contexts and can access the same EGL resourceseglEnv
- The current OpenGL ES environment. Note that this may be a different EglEnv than the one supplied withframeSize
- size of the video frame (pixels)frameRotation
- frameRotation angle to apply when rendering (degrees, usually 0)timecodeNanos
- the frame timecode, in nanosecondsvoid onWZVideoFrameListenerRelease(WZGLES.EglEnv eglEnv)
eglEnv
- The current OpenGL ES environment.© 2016 Wowza Media Systems, LLC. All rights reserved. Terms | Privacy | Trademarks | Legal