Partager via


MediaParser.CreateByName(String, MediaParser+IOutputConsumer) Method

Definition

Creates an instance backed by the parser with the given name.

[Android.Runtime.Register("createByName", "(Ljava/lang/String;Landroid/media/MediaParser$OutputConsumer;)Landroid/media/MediaParser;", "", ApiSince=30)]
public static Android.Media.MediaParser CreateByName (string name, Android.Media.MediaParser.IOutputConsumer outputConsumer);
[<Android.Runtime.Register("createByName", "(Ljava/lang/String;Landroid/media/MediaParser$OutputConsumer;)Landroid/media/MediaParser;", "", ApiSince=30)>]
static member CreateByName : string * Android.Media.MediaParser.IOutputConsumer -> Android.Media.MediaParser

Parameters

name
String

The name of the parser that will be associated with the created instance.

outputConsumer
MediaParser.IOutputConsumer

The OutputConsumer to which track data and samples are pushed.

Returns

A new instance.

Attributes

Remarks

Java documentation for android.media.MediaParser.createByName(java.lang.String, android.media.OutputConsumer).

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