Codec

Constructors

Link copied to clipboard
constructor()

Types

Link copied to clipboard
object Companion
Link copied to clipboard
interface Listener
Link copied to clipboard
open class Setting(codec: Codec?)

Properties

Link copied to clipboard
open var codec: MediaCodec?

The android.media.MediaCodec instance.

Link copied to clipboard
abstract var inputMimeType: String

Specifies the input mime type.

Link copied to clipboard
open override val isRunning: AtomicBoolean

Indicates whether the receiver is running.

Link copied to clipboard

The listener of which callback method.

Link copied to clipboard
var mode: Int

Specifies the mode of encoding or decoding.

Link copied to clipboard

Specifies the external android.media.MediaCodec options.

Link copied to clipboard
abstract var outputMimeType: String

Specifies the output mime type.

Link copied to clipboard

The surface for a video media codec.

Functions

Link copied to clipboard
open fun configure(codec: MediaCodec)
Link copied to clipboard
open fun dispose()
Link copied to clipboard
Link copied to clipboard
open override fun onError(codec: MediaCodec, e: MediaCodec.CodecException)
Link copied to clipboard
open override fun onInputBufferAvailable(codec: MediaCodec, index: Int)
Link copied to clipboard
open override fun onOutputBufferAvailable(codec: MediaCodec, index: Int, info: MediaCodec.BufferInfo)
Link copied to clipboard
open override fun onOutputFormatChanged(codec: MediaCodec, format: MediaFormat)
Link copied to clipboard
override fun startRunning()

Tells the receiver to start running.

Link copied to clipboard
override fun stopRunning()

Tells the receiver to stop running.