MediaRecorder.SetOutputFormat(OutputFormat) Method

Definition

Sets the format of the output file produced during recording.

[Android.Runtime.Register("setOutputFormat", "(I)V", "GetSetOutputFormat_IHandler")]
public virtual void SetOutputFormat (Android.Media.OutputFormat output_format);
abstract member SetOutputFormat : Android.Media.OutputFormat -> unit
override this.SetOutputFormat : Android.Media.OutputFormat -> unit

Parameters

output_format
OutputFormat

the output format to use. The output format needs to be specified before setting recording-parameters or encoders.

Attributes

Exceptions

if it is called after prepare() or before setAudioSource()/setVideoSource().

Remarks

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