AudioCodec
Encodes and decodes audio using Android media codecs.
Types
Properties
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
The android.media.MediaCodec instance.
Link copied to clipboard
Specifies the input mime type.
Link copied to clipboard
Indicates whether the receiver is running.
Link copied to clipboard
The listener for codec buffer and format callbacks, or null.
Link copied to clipboard
The processing mode: MODE_ENCODE or MODE_DECODE. Set before starting the codec.
Link copied to clipboard
Additional media format options applied during configure.
Link copied to clipboard
Specifies the output mime type.
Link copied to clipboard
Link copied to clipboard
The surface for a video media codec.
Functions
Link copied to clipboard
Link copied to clipboard
Installs callbacks and configures the codec with its media format, options, surface, and processing mode.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override fun onOutputBufferAvailable(codec: MediaCodec, index: Int, info: MediaCodec.BufferInfo)
Link copied to clipboard
open fun onOutputBuffersAvailable(codec: MediaCodec, index: Int, infos: ArrayDeque<MediaCodec.BufferInfo?>)
Link copied to clipboard
Link copied to clipboard
Tells the receiver to start running.
Link copied to clipboard
Tells the receiver to stop running.
Link copied to clipboard
Runs a short, nonblocking operation only while instance is the running codec. Use after waiting for input outside the codec's lifetime lock.