Enumerations

The following enumerations are available globally.

  • Undocumented

    See more

    Declaration

    Objective-C

    NS_ENUM(NSInteger,UZLiveCaptureType) {
        UZLiveCaptureAudio,         ///< capture only audio
        UZLiveCaptureVideo,         ///< capture onlt video
        UZLiveInputAudio,           ///< only audio (External input audio)
        UZLiveInputVideo,           ///< only video (External input video)
    }
  • Undocumented

    See more

    Declaration

    Objective-C

    NS_ENUM(NSInteger,UZLiveCaptureTypeMask) {
        UZLiveCaptureMaskAudio = (1 << UZLiveCaptureAudio),                                 ///< only inner capture audio (no video)
        UZLiveCaptureMaskVideo = (1 << UZLiveCaptureVideo),                                 ///< only inner capture video (no audio)
        UZLiveInputMaskAudio = (1 << UZLiveInputAudio),                                     ///< only outer input audio (no video)
        UZLiveInputMaskVideo = (1 << UZLiveInputVideo),                                     ///< only outer input video (no audio)
        UZLiveCaptureMaskAll = (UZLiveCaptureMaskAudio | UZLiveCaptureMaskVideo),           ///< inner capture audio and video
        UZLiveInputMaskAll = (UZLiveInputMaskAudio | UZLiveInputMaskVideo),                 ///< outer input audio and video(method see pushVideo and pushAudio)
        UZLiveCaptureMaskAudioInputVideo = (UZLiveCaptureMaskAudio | UZLiveInputMaskVideo), ///< inner capture audio and outer input video(method pushVideo and setRunning)
        UZLiveCaptureMaskVideoInputAudio = (UZLiveCaptureMaskVideo | UZLiveInputMaskAudio), ///< inner capture video and outer input audio(method pushAudio and setRunning)
        UZLiveCaptureDefaultMask = UZLiveCaptureMaskAll                                     ///< default is inner capture audio and video
    }
  • Audio bit rate (default 96Kbps)

    See more

    Declaration

    Objective-C

    enum UZAudioBitRate {}
  • Audio sampling rate (default 44.1KHz)

    See more

    Declaration

    Objective-C

    enum UZAudioSampleRate {}
  • Audio Live quality

    See more

    Declaration

    Objective-C

    enum UZAudioQuality {}
  • Video resolution (both 16:9 when the device does not support the current resolution, it will automatically decrease by one level)

    See more

    Declaration

    Objective-C

    enum UZVideoSessionPreset {}
  • Video quality

    See more

    Declaration

    Objective-C

    enum UZVideoQuality {}
  • Live state

    See more

    Declaration

    Objective-C

    enum UZLiveState {}
  • Undocumented

    See more

    Declaration

    Objective-C

    NS_ENUM (NSUInteger, UZSocketErrorCode) {
        UZSocketErrorCode_PreView = 201,              /// Preview failed
        UZSocketErrorCode_GetStreamInfo = 202,        /// Failed to obtain streaming information
        UZSocketErrorCode_ConnectSocket = 203,        /// Socket connection failed
        UZSocketErrorCode_Verification = 204,         /// Authentication server failed
        UZSocketErrorCode_ReConnectTimeOut = 205      /// Reconnect server timeout
    }