Enum ZegoScreenCaptureExceptionType

    • Enum Constant Detail

      • VIDEO_NOT_SUPPORTED

        public static final ZegoScreenCaptureExceptionType VIDEO_NOT_SUPPORTED
        The video capture system version does not support it, and Android only supports 5.0 and above.
      • AUDIO_NOT_SUPPORTED

        public static final ZegoScreenCaptureExceptionType AUDIO_NOT_SUPPORTED
        The capture target fails, such as the monitor is unplugged and the window is closed.
      • AUDIO_CREATE_FAILED

        public static final ZegoScreenCaptureExceptionType AUDIO_CREATE_FAILED
        Audio recording object creation failed. Possible reasons: 1. The audio recording permission is not enabled; 2. The allocated memory for audio recording is insufficient; 3. The creation of AudioRecord fails.
      • MEDIA_PROJECTION_PERMISSION_DENIED

        public static final ZegoScreenCaptureExceptionType MEDIA_PROJECTION_PERMISSION_DENIED
        MediaProjection request for dynamic permissions was denied.
      • NOT_START_CAPTURE

        public static final ZegoScreenCaptureExceptionType NOT_START_CAPTURE
        Capture is not started. Need to start capturing with [startScreenCapture] first.
      • ALREADY_STARTED

        public static final ZegoScreenCaptureExceptionType ALREADY_STARTED
        Screen capture has already started, repeated calls failed. You need to stop the capture with [stopScreenCapture] first.
      • SOURCE_NOT_SPECIFIED

        public static final ZegoScreenCaptureExceptionType SOURCE_NOT_SPECIFIED
        Before starting screen capture, you need to call [setVideoSource], [setAudioSource] to specify the video and audio source `ScreenCapture`.
    • Method Detail

      • values

        public static ZegoScreenCaptureExceptionType[] 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 (ZegoScreenCaptureExceptionType c : ZegoScreenCaptureExceptionType.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static ZegoScreenCaptureExceptionType 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()