create

public static RCRTCSurfaceTextureHelper create(String threadName, Context sharedContext, boolean alignTimestamps, YuvConverter yuvConverter)

Construct a new SurfaceTextureHelper sharing OpenGL resources with |sharedContext|. A dedicated thread and handler is created for handling the SurfaceTexture. May return null if EGL fails to initialize a pixel buffer surface and make it current. If alignTimestamps is true, the frame timestamps will be aligned to rtc::TimeNanos(). If frame timestamps are aligned to rtc::TimeNanos() there is no need for aligning timestamps again in PeerConnectionFactory.createVideoSource(). This makes the timestamps more accurate and closer to actual creation time.


public static RCRTCSurfaceTextureHelper create(String threadName, Context sharedContext)

Same as above with alignTimestamps set to false and yuvConverter set to new YuvConverter.

See also


public static RCRTCSurfaceTextureHelper create(String threadName, Context sharedContext, boolean alignTimestamps)

Same as above with yuvConverter set to new YuvConverter.

See also