RCRTCTextureView

public class RCRTCTextureView

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.

Constructors

Link copied to clipboard
public void RCRTCTextureView(String name)
In order to render something, you must first call init().

Types

Link copied to clipboard
@Deprecated()
public interface TextureRendererEvents
The textureRenderer events for render frame.

Functions

Link copied to clipboard
public void init(Context context, RCRTCVideoStream videoStream)
Link copied to clipboard
public void onFrame(VideoFrame frame)
Link copied to clipboard
public void onFrameResolutionChanged(int videoWidth, int videoHeight, int rotation)
Link copied to clipboard
@Deprecated()
public void registerTextureRendererEvents(RCRTCTextureView.TextureRendererEvents textureRendererEvents)
Link copied to clipboard
public void release()
Link copied to clipboard
public void setMirror(boolean mirror)
Link copied to clipboard
public void setMirrorInternal(boolean mirror)
Link copied to clipboard
public void setRendererEventsListener(RCRTCRendererEventsListener listener)
Link copied to clipboard
public void setScalingType(ScalingType mode)
Link copied to clipboard
public void surfaceCreated(SurfaceTexture texture)
Link copied to clipboard
public void surfaceDestroyed()