共用方式為


MediaFormat.CreateVideoFormat(String, Int32, Int32) Method

Definition

Creates a minimal video format.

[Android.Runtime.Register("createVideoFormat", "(Ljava/lang/String;II)Landroid/media/MediaFormat;", "")]
public static Android.Media.MediaFormat CreateVideoFormat (string mime, int width, int height);
[<Android.Runtime.Register("createVideoFormat", "(Ljava/lang/String;II)Landroid/media/MediaFormat;", "")>]
static member CreateVideoFormat : string * int * int -> Android.Media.MediaFormat

Parameters

mime
String

The mime type of the content.

width
Int32

The width of the content (in pixels)

height
Int32

The height of the content (in pixels)

Returns

Attributes

Remarks

Creates a minimal video format.

Java documentation for android.media.MediaFormat.createVideoFormat(java.lang.String, int, int).

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