DefaultSurfaceTextureCaptureSource
class DefaultSurfaceTextureCaptureSource(logger: Logger, width: Int, height: Int, val contentHint: VideoContentHint = VideoContentHint.None, eglCoreFactory: EglCoreFactory) : SurfaceTextureCaptureSource
DefaultSurfaceTextureCaptureSource will provide a Surface which it will listen to and convert to VideoFrameTextureBuffer objects
Constructors
Link copied to clipboard
constructor(logger: Logger, width: Int, height: Int, contentHint: VideoContentHint = VideoContentHint.None, eglCoreFactory: EglCoreFactory)
Functions
Link copied to clipboard
Add a capture source observer to receive callbacks from the source on lifecycle events which can be used to trigger UI. This observer is entirely optional.
Link copied to clipboard
Add a video sink which will immediately begin to receive new frames.
Link copied to clipboard
Remove a capture source observer
Link copied to clipboard
Remove a video sink which will no longer receive new frames on return
Link copied to clipboard
Set max resolution for video capture source DefaultCameraCaptureSource and DefaultScreenCaptureSource call this function to set max resolution for camera and screen capture