Package im.zego.zegoexpress.constants
Enum ZegoVideoMirrorMode
- java.lang.Object
-
- java.lang.Enum<ZegoVideoMirrorMode>
-
- im.zego.zegoexpress.constants.ZegoVideoMirrorMode
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<ZegoVideoMirrorMode>
public enum ZegoVideoMirrorMode extends java.lang.Enum<ZegoVideoMirrorMode>
Mirror mode for previewing or playing the of the stream.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BOTH_MIRROR
Both the video previewed locally and the far end playing the stream will see mirror image.NO_MIRROR
Both the video previewed locally and the far end playing the stream will not see mirror image.ONLY_PREVIEW_MIRROR
The mirror image only for previewing locally.ONLY_PUBLISH_MIRROR
The mirror image only for far end playing the stream.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ZegoVideoMirrorMode
getZegoVideoMirrorMode(int value)
int
value()
static ZegoVideoMirrorMode
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static ZegoVideoMirrorMode[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ONLY_PREVIEW_MIRROR
public static final ZegoVideoMirrorMode ONLY_PREVIEW_MIRROR
The mirror image only for previewing locally. This mode is used by default. When the mobile terminal uses a rear camera, this mode is still used by default, but it does not work. Local preview does not set mirroring.
-
BOTH_MIRROR
public static final ZegoVideoMirrorMode BOTH_MIRROR
Both the video previewed locally and the far end playing the stream will see mirror image.
-
NO_MIRROR
public static final ZegoVideoMirrorMode NO_MIRROR
Both the video previewed locally and the far end playing the stream will not see mirror image.
-
ONLY_PUBLISH_MIRROR
public static final ZegoVideoMirrorMode ONLY_PUBLISH_MIRROR
The mirror image only for far end playing the stream.
-
-
Method Detail
-
values
public static ZegoVideoMirrorMode[] 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 (ZegoVideoMirrorMode c : ZegoVideoMirrorMode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ZegoVideoMirrorMode 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
-
value
public int value()
-
getZegoVideoMirrorMode
public static ZegoVideoMirrorMode getZegoVideoMirrorMode(int value)
-
-