IEncoderInternal

Types

Link copied to clipboard
interface IEncoderInput
Link copied to clipboard
interface IListener
Link copied to clipboard

Properties

Link copied to clipboard
abstract var bitrate: Int

Gets/sets encoder bitrate.

Link copied to clipboard
abstract val config: CodecConfig

The encoder configuration

Link copied to clipboard

The encoder info like the supported resolutions, bitrates, etc.

Link copied to clipboard

The encoder input.

Link copied to clipboard
abstract val mimeType: String

The encoder mime type

Link copied to clipboard
abstract val startBitrate: Int

The bitrate at which the encoder will start (ie the one in the configuration)

Functions

Link copied to clipboard
abstract fun configure()

Configure the encoder

Link copied to clipboard
abstract fun release()

Closes and releases resources

Link copied to clipboard
abstract fun requestKeyFrame()

Force the encoder to generate a key frame.

Link copied to clipboard
abstract fun reset()

Reset the encoder

Link copied to clipboard
abstract fun setListener(listener: IEncoderInternal.IListener, listenerExecutor: Executor)

Set the encoder listener

Link copied to clipboard
abstract suspend fun startStream()

Starts frames or data stream generation Throws an exception if not ready for live stream

Link copied to clipboard
abstract suspend fun stopStream()

Stops frames or data stream generation