Class SurfaceEglRenderer

java.lang.Object
com.telnyx.webrtc.lib.EglRenderer
com.telnyx.webrtc.lib.SurfaceEglRenderer
All Implemented Interfaces:
SurfaceHolder.Callback, VideoSink

public class SurfaceEglRenderer extends EglRenderer implements SurfaceHolder.Callback
Display the video stream on a Surface. renderFrame() is asynchronous to avoid blocking the calling thread. This class is thread safe and handles access from potentially three different threads: Interaction from the main app in init, release and setMirror. Interaction from C++ rtc::VideoSinkInterface in renderFrame. Interaction from SurfaceHolder lifecycle in surfaceCreated, surfaceChanged, and surfaceDestroyed.