Sdílet prostřednictvím


MediaCodec.OutputFormat Property

Definition

Call this after dequeueOutputBuffer signals a format change by returning #INFO_OUTPUT_FORMAT_CHANGED.

public Android.Media.MediaFormat OutputFormat { [Android.Runtime.Register("getOutputFormat", "()Landroid/media/MediaFormat;", "")] get; }
[<get: Android.Runtime.Register("getOutputFormat", "()Landroid/media/MediaFormat;", "")>]
member this.OutputFormat : Android.Media.MediaFormat

Property Value

Attributes

Exceptions

if not in the Executing or Configured state.

upon codec error.

Remarks

Call this after dequeueOutputBuffer signals a format change by returning #INFO_OUTPUT_FORMAT_CHANGED. You can also call this after #configure returns successfully to get the output format initially configured for the codec. Do this to determine what optional configuration parameters were supported by the codec.

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

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