Compartilhar via


MediaCodec.Name Property

Definition

Retrieve the codec name.

public string Name { [Android.Runtime.Register("getName", "()Ljava/lang/String;", "")] get; }
[<get: Android.Runtime.Register("getName", "()Ljava/lang/String;", "")>]
member this.Name : string

Property Value

Attributes

Exceptions

if in the Released state.

Remarks

Retrieve the codec name.

If the codec was created by createDecoderByType or createEncoderByType, what component is chosen is not known beforehand. This method returns the name of the codec that was selected by the platform.

<strong>Note:</strong> Implementations may provide multiple aliases (codec names) for the same underlying codec, any of which can be used to instantiate the same underlying codec in MediaCodec#createByCodecName. This method returns the name used to create the codec in this case.

Java documentation for android.media.MediaCodec.getName().

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