Sdílet prostřednictvím


MediaCodec.CreateByCodecName(String) Method

Definition

If you know the exact name of the component you want to instantiate use this method to instantiate it.

[Android.Runtime.Register("createByCodecName", "(Ljava/lang/String;)Landroid/media/MediaCodec;", "")]
public static Android.Media.MediaCodec CreateByCodecName (string name);
[<Android.Runtime.Register("createByCodecName", "(Ljava/lang/String;)Landroid/media/MediaCodec;", "")>]
static member CreateByCodecName : string -> Android.Media.MediaCodec

Parameters

name
String

The name of the codec to be instantiated.

Returns

Attributes

Exceptions

if the codec cannot be created.

if name is not valid.

if name is null.

Remarks

If you know the exact name of the component you want to instantiate use this method to instantiate it. Use with caution. Likely to be used with information obtained from android.media.MediaCodecList

Java documentation for android.media.MediaCodec.createByCodecName(java.lang.String).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to