VideoSinkProvider


@UnstableApi
interface VideoSinkProvider


A provider of VideoSinks.

Summary

Public functions

Unit

Clears the set output surface info.

VideoSink!

Returns a VideoSink to forward video frames for processing.

VideoFrameReleaseControl!

Returns the VideoFrameReleaseControl that will be used for releasing of video frames during rendering.

Unit

Releases the sink provider.

Unit
setOutputSurfaceInfo(outputSurface: Surface!, outputResolution: Size!)

Sets the output surface info.

Public functions

clearOutputSurfaceInfo

fun clearOutputSurfaceInfo(): Unit

Clears the set output surface info.

getSink

fun getSink(): VideoSink!

Returns a VideoSink to forward video frames for processing.

getVideoFrameReleaseControl

fun getVideoFrameReleaseControl(): VideoFrameReleaseControl!

Returns the VideoFrameReleaseControl that will be used for releasing of video frames during rendering.

release

fun release(): Unit

Releases the sink provider.

setOutputSurfaceInfo

fun setOutputSurfaceInfo(outputSurface: Surface!, outputResolution: Size!): Unit

Sets the output surface info.