Enum NERoomVideoView.VideoScalingType
-
- All Implemented Interfaces:
-
java.io.Serializable
,kotlin.Comparable
public enum NERoomVideoView.VideoScalingType extends Enum<NERoomVideoView.VideoScalingType>
视频画布缩放方式
-
-
Enum Constant Summary
Enum Constants Enum Constant Description SCALE_ASPECT_FIT
适应视频,视频尺寸等比缩放。优先保证视频内容全部显示。若视频尺寸与显示视窗尺寸不一致,视窗未被填满的区域填充背景色。
SCALE_ASPECT_FILL
适应区域,视频尺寸等比缩放。保证所有区域被填满,视频超出部分会被裁剪。
SCALE_ASPECT_BALANCED
折中方案,视频尺寸非等比缩放。保证视频内容全部显示,且填满视窗。
-
Method Summary
Modifier and Type Method Description final NERoomVideoView.VideoScalingType
valueOf(String value)
Returns the enum constant of this type with the specified name. final Array<NERoomVideoView.VideoScalingType>
values()
Returns an array containing the constants of this enum type, in the order they're declared. -
-
Method Detail
-
valueOf
final NERoomVideoView.VideoScalingType valueOf(String value)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
-
values
final Array<NERoomVideoView.VideoScalingType> values()
Returns an array containing the constants of this enum type, in the order they're declared.
This method may be used to iterate over the constants.
-
-
-
-