Package com.alivc.live.pusher
Enum AlivcPreviewDisplayMode
- java.lang.Object
-
- java.lang.Enum<AlivcPreviewDisplayMode>
-
- com.alivc.live.pusher.AlivcPreviewDisplayMode
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<AlivcPreviewDisplayMode>
public enum AlivcPreviewDisplayMode extends java.lang.Enum<AlivcPreviewDisplayMode>
Created by pengshuang on 13/04/2018.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ALIVC_LIVE_PUSHER_PREVIEW_ASPECT_FILL
剪切视频以适配窗口比例,视频比例和窗口比例不一致时会裁剪视频ALIVC_LIVE_PUSHER_PREVIEW_ASPECT_FIT
保持视频比例,比例与窗口比例不一致时有黑边ALIVC_LIVE_PUSHER_PREVIEW_SCALE_FILL
铺满窗口,视频比例和窗口比例不一致时预览会有变形
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getPreviewDisplayMode()
static AlivcPreviewDisplayMode
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static AlivcPreviewDisplayMode[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ALIVC_LIVE_PUSHER_PREVIEW_SCALE_FILL
public static final AlivcPreviewDisplayMode ALIVC_LIVE_PUSHER_PREVIEW_SCALE_FILL
铺满窗口,视频比例和窗口比例不一致时预览会有变形
-
ALIVC_LIVE_PUSHER_PREVIEW_ASPECT_FIT
public static final AlivcPreviewDisplayMode ALIVC_LIVE_PUSHER_PREVIEW_ASPECT_FIT
保持视频比例,比例与窗口比例不一致时有黑边
-
ALIVC_LIVE_PUSHER_PREVIEW_ASPECT_FILL
public static final AlivcPreviewDisplayMode ALIVC_LIVE_PUSHER_PREVIEW_ASPECT_FILL
剪切视频以适配窗口比例,视频比例和窗口比例不一致时会裁剪视频
-
-
Method Detail
-
values
public static AlivcPreviewDisplayMode[] 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 (AlivcPreviewDisplayMode c : AlivcPreviewDisplayMode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static AlivcPreviewDisplayMode 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
-
getPreviewDisplayMode
public int getPreviewDisplayMode()
-
-