Android.Media.MediaPlayer.SetVideoScalingMode Method
Sets video scaling mode.

Syntax

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

See Also

MediaPlayer.VideoScalingModeScaleToFit
MediaPlayer.VideoScalingModeScaleToFitWithCropping

Parameters

mode
target video scaling mode. Most be one of the supported video scaling modes; otherwise, IllegalArgumentException will be thrown.

Remarks

Sets video scaling mode. To make the target video scaling mode effective during playback, this method must be called after data source is set. If not called, the default video scaling mode is MediaPlayer.VideoScalingModeScaleToFit.

The supported video scaling modes are:

[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