Skip to navigation

CustomVideoSource (class)

Android SDK v3 API reference
View as Markdown

video

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.

Constructors

Properties

Constructors

CustomVideoSource

CustomVideoSource()

Properties

surfaceTextureHelper

var surfaceTextureHelper: SurfaceTextureHelper?

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 VICalls.eglBase context.

Use this context for video encoding/decoding and video rendering.