CodecOption

data class CodecOption(val key: String, val value: Any)

An additional key-value option applied to an Android MediaFormat.

Constructors

Link copied to clipboard
constructor(key: String, value: Any)

Properties

Link copied to clipboard
val key: String

The media format key.

Link copied to clipboard
val value: Any

An Int, Long, Float, String, or ByteBuffer. Other types cause an IllegalArgumentException when the option is applied.