CustomVideoSource
This API is in beta and subject to change.
Class that represents alternative video frame source for a call. The class may be used to send video frames from an alternative to camera video source.
Inherits from VideoSource interface.
Methods
setSurfaceTextureHelper
fun setSurfaceTextureHelper(helper: SurfaceTextureHelper
): Unit
This API is in beta and subject to change.
Sets WebRTC SurfaceTextureHelper created externally on the application side.
SurfaceTextureHelper may be used to send video frames previously rendered to a surface, for example, from external implementation of android Camera and its preview.
SurfaceTextureHelper should be created with shared CallManagerConfig.eglBase context.
Use this context for video encoding/decoding and video rendering.
Parameters
helper:
SurfaceTextureHelper
SurfaceTextureHelper instance.
Returns
type:
Unit
setCustomVideoSourceListener
fun setCustomVideoSourceListener(listener: ): Unit
This API is in beta and subject to change.
Sets CustomVideoSourceListener to monitor its events.
Parameters
listener:
OptionalThe CustomVideoSourceListener instance or null
Returns
type:
Unit
Props
videoSource
val videoSource: VideoSource?
Returns
type:
VideoSource?