CustomVideoSourceSurface

class CustomVideoSourceSurface(width: Int, height: Int) : CustomVideoSource

A video source for custom tracks, which uses an off-screen, hardware accelerated Surface for sending frames.

Constructors

Link copied to clipboard
fun CustomVideoSourceSurface(width: Int, height: Int)

Functions

Link copied to clipboard
fun setSize(width: Int, height: Int)

Properties

Link copied to clipboard
val surface: Surface

Returns the Surface associated with this source. Rendering to this Surface will add frames to the video track.

Link copied to clipboard
val surfaceOrNull: Surface?

Returns the Surface associated with this source. Rendering to this Surface will add frames to the video track.