Android.Media.MediaCodec.SetVideoScalingMode Method
If a surface has been specified in a previous call to MediaCodec.Configure(MediaFormat, Android.Views.Surface, Android.Views.Surface, Android.Views.Surface) specifies the scaling mode to use.

Syntax

[Android.Runtime.Register("setVideoScalingMode", "(I)V", "")]
public void SetVideoScalingMode ([Android.Runtime.GeneratedEnum] VideoScalingMode mode)

Parameters

mode
Documentation for this section has not yet been entered.

Exceptions

TypeReason
Java.Lang.IllegalArgumentExceptionif mode is not recognized.
Java.Lang.IllegalStateExceptionif in the Uninitialized state.

Remarks

If a surface has been specified in a previous call to MediaCodec.Configure(MediaFormat, Android.Views.Surface, Android.Views.Surface, Android.Views.Surface) specifies the scaling mode to use. The default is "scale to fit".

[Android Documentation]

Requirements

Namespace: Android.Media
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 16