Android.Media.MediaCodec.CreateEncoderByType Method
Instantiate an encoder supporting output data of the given mime type.

Syntax

[Android.Runtime.Register("createEncoderByType", "(Ljava/lang/String;)Landroid/media/MediaCodec;", "")]
public static MediaCodec CreateEncoderByType (string type)

Parameters

type
The desired mime type of the output data.

Returns

Documentation for this section has not yet been entered.

Exceptions

TypeReason
Java.IO.IOExceptionif the codec cannot be created.
Java.Lang.IllegalArgumentExceptionif type is not a valid mime type.
Java.Lang.NullPointerExceptionif type is null.

Remarks

Instantiate an encoder supporting output data of the given mime type.

[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