Rate this page:

CustomVideoSource

This API is in beta and subject to change.

Interface that represents alternative video frame source for a call. The interface may be used to send video frames from alternative to camera video source.

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?