Rate this page:

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

Copy URL
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

Copy URL
fun setCustomVideoSourceListener(listener: 

CustomVideoSourceListener?

):

Unit

This API is in beta and subject to change.

Sets CustomVideoSourceListener to monitor its events.

Parameters

Returns

  • type:

    Unit

Props

videoSource

Copy URL
val videoSource: 

VideoSource?

Returns

  • type:

    VideoSource?