public enum AlivcPreviewDisplayMode extends java.lang.Enum<AlivcPreviewDisplayMode>
Enum Constant and Description |
---|
ALIVC_LIVE_PUSHER_PREVIEW_ASPECT_FILL
剪切视频以适配窗口比例
视频比例和窗口比例不一致时会裁剪视频
|
ALIVC_LIVE_PUSHER_PREVIEW_ASPECT_FIT
保持视频比例
比例与窗口比例不一致时有黑边
|
ALIVC_LIVE_PUSHER_PREVIEW_SCALE_FILL
铺满窗口
视频比例和窗口比例不一致时预览会有变形
|
Modifier and Type | Method and 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.
|
public static final AlivcPreviewDisplayMode ALIVC_LIVE_PUSHER_PREVIEW_SCALE_FILL
public static final AlivcPreviewDisplayMode ALIVC_LIVE_PUSHER_PREVIEW_ASPECT_FIT
public static final AlivcPreviewDisplayMode ALIVC_LIVE_PUSHER_PREVIEW_ASPECT_FILL
public static AlivcPreviewDisplayMode[] values()
for (AlivcPreviewDisplayMode c : AlivcPreviewDisplayMode.values()) System.out.println(c);
public static AlivcPreviewDisplayMode valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic int getPreviewDisplayMode()