public interface LocalVideoFrameListener
Modifier and Type | Method and Description |
---|---|
void |
onFrame(VideoFrame frame,
ProcessedVideoFrameListener processedFrameListener)
Called when a new frame is available from the local camera.
|
void onFrame(VideoFrame frame, ProcessedVideoFrameListener processedFrameListener)
ImageFormat.YUV_420_888
frame
- The YUV I420 frame object.processedFrameListener
- use it to inform that processing is complete and send frames
(updated or original) to remote client
IMPORTANT:
When processing is complete, call onFrame()
method of ProcessedVideoFrameListener
interface. Failure to do so will lead to remote side not getting any frames. It is allowed to
call processedFrameListener.onFrame() with either original or updated or entirely new frame.
The ProcessedVideoFrameListener
is THREAD SAFE, so processed frames can be dispatched
from any thread.
Copyright 2016, Sinch AB