Package com.twilio.video
Enum VideoScaleType
- java.lang.Object
-
- java.lang.Enum<VideoScaleType>
-
- com.twilio.video.VideoScaleType
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<VideoScaleType>
public enum VideoScaleType extends java.lang.Enum<VideoScaleType>
Specifies what type of video scaling that will be performed by aVideoSink
.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ASPECT_BALANCED
A combination of fit and fill.ASPECT_FILL
Video is scaled to fill entire view and preserve aspect ratio.ASPECT_FIT
Video is scaled to fit size of view while maintaining aspect ratio.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static VideoScaleType
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static VideoScaleType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ASPECT_FIT
public static final VideoScaleType ASPECT_FIT
Video is scaled to fit size of view while maintaining aspect ratio. Black bars may appear.
-
ASPECT_FILL
public static final VideoScaleType ASPECT_FILL
Video is scaled to fill entire view and preserve aspect ratio. This may cause cropping.
-
ASPECT_BALANCED
public static final VideoScaleType ASPECT_BALANCED
A combination of fit and fill. Will scale, fit, and crop accordingly to internal visibility fraction.
-
-
Method Detail
-
values
public static VideoScaleType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (VideoScaleType c : VideoScaleType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static VideoScaleType valueOf(java.lang.String name)
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.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
-