MediaFormat.CreateSubtitleFormat(String, String) Method

Definition

Creates a minimal subtitle format.

[Android.Runtime.Register("createSubtitleFormat", "(Ljava/lang/String;Ljava/lang/String;)Landroid/media/MediaFormat;", "")]
public static Android.Media.MediaFormat CreateSubtitleFormat (string mime, string? language);
[<Android.Runtime.Register("createSubtitleFormat", "(Ljava/lang/String;Ljava/lang/String;)Landroid/media/MediaFormat;", "")>]
static member CreateSubtitleFormat : string * string -> Android.Media.MediaFormat

Parameters

mime
String

The mime type of the content.

language
String

The language of the content, using either ISO 639-1 or 639-2/T codes. Specify null or "und" if language information is only included in the content. (This will also work if there are multiple language tracks in the content.)

Returns

Attributes

Remarks

Creates a minimal subtitle format.

Java documentation for android.media.MediaFormat.createSubtitleFormat(java.lang.String, 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