Android Guides | Samples

Android.Media.MediaPlayerVideoScalingModeNotInUse Enumeration

Enumerates values returned by several types.

Syntax

public enum MediaPlayerVideoScalingModeNotInUse

Remarks

Members

Member NameDescription
ScaleToFitSpecifies a video scaling mode. The content is stretched to the surface rendering area. When the surface has the same aspect ratio as the content, the aspect ratio of the content is maintained; otherwise, the aspect ratio of the content is not maintained when video is being rendered. Unlike MediaPlayer.VideoScalingModeScaleToFitWithCropping, there is no content cropping with this video scaling mode.
ScaleToFitWithCroppingSpecifies a video scaling mode. The content is scaled, maintaining its aspect ratio. The whole surface area is always used. When the aspect ratio of the content is the same as the surface, no content is cropped; otherwise, content is cropped to fit the surface.

Requirements

Namespace: Android.Media
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0

The members of Android.Media.MediaPlayerVideoScalingModeNotInUse are listed below.

See Also: Enum

Public Fields

ScaleToFitMediaPlayerVideoScalingModeNotInUse. Specifies a video scaling mode. The content is stretched to the surface rendering area. When the surface has the same aspect ratio as the content, the aspect ratio of the content is maintained; otherwise, the aspect ratio of the content is not maintained when video is being rendered. Unlike MediaPlayer.VideoScalingModeScaleToFitWithCropping, there is no content cropping with this video scaling mode.
ScaleToFitWithCroppingMediaPlayerVideoScalingModeNotInUse. Specifies a video scaling mode. The content is scaled, maintaining its aspect ratio. The whole surface area is always used. When the aspect ratio of the content is the same as the surface, no content is cropped; otherwise, content is cropped to fit the surface.