Package im.zego.zegoexpress.constants
Enum ZegoVideoSourceType
- java.lang.Object
-
- java.lang.Enum<ZegoVideoSourceType>
-
- im.zego.zegoexpress.constants.ZegoVideoSourceType
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<ZegoVideoSourceType>
public enum ZegoVideoSourceType extends java.lang.Enum<ZegoVideoSourceType>
video capture source.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CAMERA
The video source comes from the camera (main channel default, and front camera is captured by default).CUSTOM
Video source from custom capture.MAIN_PUBLISH_CHANNEL
Video source from the main publish channel.NONE
No capture, i.e.PLAYER
Video source from media player.SCREEN_CAPTURE
Video source from screen capture.SECONDARY_CAMERA
Video source from secondary camera, the rear camera when [useFrontCamera] is set to true, otherwise the front camera, only support iOS.ZEGO_VIDEO_SOURCE_CAMERA
Deprecated.Same as [Camera], that is, video source from cameraZEGO_VIDEO_SOURCE_DEFAULT
Deprecated.Which video source to be used will determined by SDKZEGO_VIDEO_SOURCE_EXTERNAL_CAPTURE
Deprecated.Same as [Custom], that is, video source from custom captureZEGO_VIDEO_SOURCE_MAIN_PUBLISH_CHANNEL
Deprecated.Same as [MainPublishChannel], that is, video source from the main publish channelZEGO_VIDEO_SOURCE_NONE
Deprecated.Same as [None], that is, no captureZEGO_VIDEO_SOURCE_PLAYER
Deprecated.Same as [Player], that is, video source from media playerZEGO_VIDEO_SOURCE_SCREEN_CAPTURE
Deprecated.Same as [ScreenCapture], that is, video source from screen capture
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ZegoVideoSourceType
getZegoVideoSourceType(int value)
int
value()
static ZegoVideoSourceType
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static ZegoVideoSourceType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NONE
public static final ZegoVideoSourceType NONE
No capture, i.e. no video data.
-
CAMERA
public static final ZegoVideoSourceType CAMERA
The video source comes from the camera (main channel default, and front camera is captured by default). The default is front camera, which can be adjusted to rear via [useFrontCamera].
-
CUSTOM
public static final ZegoVideoSourceType CUSTOM
Video source from custom capture.
-
MAIN_PUBLISH_CHANNEL
public static final ZegoVideoSourceType MAIN_PUBLISH_CHANNEL
Video source from the main publish channel. When publishing the main channel, this value cannot be set.
-
PLAYER
public static final ZegoVideoSourceType PLAYER
Video source from media player.
-
SCREEN_CAPTURE
public static final ZegoVideoSourceType SCREEN_CAPTURE
Video source from screen capture.
-
ZEGO_VIDEO_SOURCE_DEFAULT
@Deprecated public static final ZegoVideoSourceType ZEGO_VIDEO_SOURCE_DEFAULT
Deprecated.Which video source to be used will determined by SDK
-
ZEGO_VIDEO_SOURCE_NONE
@Deprecated public static final ZegoVideoSourceType ZEGO_VIDEO_SOURCE_NONE
Deprecated.Same as [None], that is, no capture
-
ZEGO_VIDEO_SOURCE_CAMERA
@Deprecated public static final ZegoVideoSourceType ZEGO_VIDEO_SOURCE_CAMERA
Deprecated.Same as [Camera], that is, video source from camera
-
ZEGO_VIDEO_SOURCE_EXTERNAL_CAPTURE
@Deprecated public static final ZegoVideoSourceType ZEGO_VIDEO_SOURCE_EXTERNAL_CAPTURE
Deprecated.Same as [Custom], that is, video source from custom capture
-
ZEGO_VIDEO_SOURCE_MAIN_PUBLISH_CHANNEL
@Deprecated public static final ZegoVideoSourceType ZEGO_VIDEO_SOURCE_MAIN_PUBLISH_CHANNEL
Deprecated.Same as [MainPublishChannel], that is, video source from the main publish channel
-
ZEGO_VIDEO_SOURCE_PLAYER
@Deprecated public static final ZegoVideoSourceType ZEGO_VIDEO_SOURCE_PLAYER
Deprecated.Same as [Player], that is, video source from media player
-
ZEGO_VIDEO_SOURCE_SCREEN_CAPTURE
@Deprecated public static final ZegoVideoSourceType ZEGO_VIDEO_SOURCE_SCREEN_CAPTURE
Deprecated.Same as [ScreenCapture], that is, video source from screen capture
-
SECONDARY_CAMERA
public static final ZegoVideoSourceType SECONDARY_CAMERA
Video source from secondary camera, the rear camera when [useFrontCamera] is set to true, otherwise the front camera, only support iOS.
-
-
Method Detail
-
values
public static ZegoVideoSourceType[] 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 (ZegoVideoSourceType c : ZegoVideoSourceType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ZegoVideoSourceType 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()
-
getZegoVideoSourceType
public static ZegoVideoSourceType getZegoVideoSourceType(int value)
-
-