- format
- The format of the input data (decoder) or the desired format of the output data (encoder).
- surface
- Specify a surface on which to render the output of this decoder.
- crypto
- Specify a crypto object to facilitate secure decryption of the media data.
- flags
- Specify MediaCodec.ConfigureFlagEncode to configure the component as an encoder.
Type Reason Java.Lang.IllegalArgumentException if the surface has been released (or is invalid), or the format is unacceptable (e.g. missing a mandatory key), or the flags are not set properly (e.g. missing MediaCodec.ConfigureFlagEncode for an encoder). Java.Lang.IllegalStateException if not in the Initialized state.
Configures a component.