Enum ZegoVideoSourceType

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<ZegoVideoSourceType>

    public enum ZegoVideoSourceType
    extends java.lang.Enum<ZegoVideoSourceType>
    video capture source.
    • Enum Constant Detail

      • 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].
      • 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.
      • 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 name
        java.lang.NullPointerException - if the argument is null
      • value

        public int value()
      • getZegoVideoSourceType

        public static ZegoVideoSourceType getZegoVideoSourceType​(int value)