Android.Media.MediaCodec.Configure Method
Configures a component.

Syntax

[Android.Runtime.Register("configure", "(Landroid/media/MediaFormat;Landroid/view/Surface;Landroid/media/MediaCrypto;I)V", "")]
public void Configure (MediaFormat format, Android.Views.Surface surface, MediaCrypto crypto, [Android.Runtime.GeneratedEnum] MediaCodecConfigFlags flags)

Parameters

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.

Exceptions

TypeReason
Java.Lang.IllegalArgumentExceptionif 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.IllegalStateExceptionif not in the Initialized state.

Remarks

Configures a component.

[Android Documentation]

Requirements

Namespace: Android.Media
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 16