다음을 통해 공유


MediaPlayer.VideoScalingModeScaleToFit Field

Definition

Caution

This constant will be removed in the future version. Use Android.Media.MediaPlayerVideoScalingModeNotInUse enum directly instead of this field.

Specifies a video scaling mode.

[Android.Runtime.Register("VIDEO_SCALING_MODE_SCALE_TO_FIT")]
[System.Obsolete("This constant will be removed in the future version. Use Android.Media.MediaPlayerVideoScalingModeNotInUse enum directly instead of this field.", true)]
public const Android.Media.MediaPlayerVideoScalingModeNotInUse VideoScalingModeScaleToFit = 1;
[<Android.Runtime.Register("VIDEO_SCALING_MODE_SCALE_TO_FIT")>]
[<System.Obsolete("This constant will be removed in the future version. Use Android.Media.MediaPlayerVideoScalingModeNotInUse enum directly instead of this field.", true)>]
val mutable VideoScalingModeScaleToFit : Android.Media.MediaPlayerVideoScalingModeNotInUse

Field Value

Value = 1
Attributes

Remarks

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 #VIDEO_SCALING_MODE_SCALE_TO_FIT_WITH_CROPPING, there is no content cropping with this video scaling mode.

Java documentation for android.media.MediaPlayer.VIDEO_SCALING_MODE_SCALE_TO_FIT.

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