AlivcLivePusher  4.4.1
Aliyun Live Pusher API Reference Manual for iOS Platforms
AlivcLivePushConstants.h File Reference

Functions

typedef NS_ENUM (NSInteger, AlivcLivePushAudioChannel)
 声道数 More...
 
typedef NS_ENUM (NSInteger, AlivcLivePushAudioEncoderMode)
 音频编码模式 More...
 
typedef NS_ENUM (NSInteger, AlivcLivePushAudioEncoderProfile)
 音频编码格式 More...
 
typedef NS_ENUM (NSInteger, AlivcLivePushAudioFormat)
 sound format More...
 
typedef NS_ENUM (NSInteger, AlivcLivePushAudioSampleRate)
 音频采样率 More...
 
typedef NS_ENUM (NSInteger, AlivcLivePushCameraType)
 摄像头方向 More...
 
typedef NS_ENUM (NSInteger, AlivcLivePusherAudioScenario)
 音频应用场景 More...
 
typedef NS_ENUM (NSInteger, AlivcLivePushFPS)
 
typedef NS_ENUM (NSInteger, AlivcLivePushLogLevel)
 SDK log级别 More...
 
typedef NS_ENUM (NSInteger, AlivcLivePushOrientation)
 推流屏幕方向 More...
 
typedef NS_ENUM (NSInteger, AlivcLivePushPublishType)
 推流协议 More...
 
typedef NS_ENUM (NSInteger, AlivcLivePushQualityMode)
 推流模式 More...
 
typedef NS_ENUM (NSInteger, AlivcLivePushResolution)
 分辨率 More...
 
typedef NS_ENUM (NSInteger, AlivcLivePushScallingMode)
 缩放模式 More...
 
typedef NS_ENUM (NSInteger, AlivcLivePushStatus)
 推流状态 More...
 
typedef NS_ENUM (NSInteger, AlivcLivePushVideoEncodeGOP)
 关键帧间隔 More...
 
typedef NS_ENUM (NSInteger, AlivcLivePushVideoEncoderMode)
 视频编码模式 More...
 
typedef NS_ENUM (NSInteger, AlivcLivePushVideoEncoderModeHardCodec)
 硬编码方式 More...
 
typedef NS_ENUM (NSInteger, AlivcLivePushVideoFormat)
 Image format. More...
 
typedef NS_ENUM (NSInteger, AlivcPusherErrorCode)
 接口返回值错误码 More...
 
typedef NS_ENUM (NSInteger, AlivcPusherPreviewDisplayMode)
 预览窗口显示模式 More...
 

Function Documentation

◆ NS_ENUM() [1/21]

typedef NS_ENUM ( NSInteger  ,
AlivcLivePushAudioChannel   
)

声道数

  • AlivcLivePushAudioChannelOne: 单声道
  • AlivcLivePushAudioChannelTwo: 双声道

◆ NS_ENUM() [2/21]

typedef NS_ENUM ( NSInteger  ,
AlivcLivePushAudioEncoderMode   
)

音频编码模式

  • AlivcLivePushAudioEncoderModeHard: 硬编码
  • AlivcLivePushAudioEncoderModeSoft: 软编码

◆ NS_ENUM() [3/21]

typedef NS_ENUM ( NSInteger  ,
AlivcLivePushAudioEncoderProfile   
)

音频编码格式

  • AlivcLivePushAudioEncoderProfile_AAC_LC: AAC_LC
  • AlivcLivePushAudioEncoderProfile_HE_AAC: HE_AAC
  • AlivcLivePushAudioEncoderProfile_HE_AAC_V2: HE_AAC_V2
  • AlivcLivePushAudioEncoderProfile_AAC_LD: AAC_LD

◆ NS_ENUM() [4/21]

typedef NS_ENUM ( NSInteger  ,
AlivcLivePushAudioFormat   
)

sound format

◆ NS_ENUM() [5/21]

typedef NS_ENUM ( NSInteger  ,
AlivcLivePushAudioSampleRate   
)

音频采样率

  • AlivcLivePushAudioSample32000: 32000Hz

◆ NS_ENUM() [6/21]

typedef NS_ENUM ( NSInteger  ,
AlivcLivePushCameraType   
)

摄像头方向

  • AlivcLivePushCameraTypeBack: 后置摄像头
  • AlivcLivePushCameraTypeFront: 前置摄像头

◆ NS_ENUM() [7/21]

typedef NS_ENUM ( NSInteger  ,
AlivcLivePusherAudioScenario   
)

音频应用场景

  • AlivcLivePusherAudioScenarioDefaultMode 默认场景,一般的直播场景推荐使用
  • AlivcLivePusherAudioScenarioMediaMode 媒体场景,保真人声与音乐音质等 推荐使用
  • AlivcLivePusherAudioScenarioMusicMode 音乐场景,高保真音乐音质,乐器教学等对音乐音质有要求的场景推荐使用

◆ NS_ENUM() [8/21]

typedef NS_ENUM ( NSInteger  ,
AlivcLivePushFPS   
)

◆ NS_ENUM() [9/21]

typedef NS_ENUM ( NSInteger  ,
AlivcLivePushLogLevel   
)

SDK log级别

  • AlivcLivePushLogLevelAll: 全部
  • AlivcLivePushLogLevelVerbose: 冗长
  • AlivcLivePushLogLevelDebug: 调试
  • AlivcLivePushLogLevelInfo: 提示
  • AlivcLivePushLogLevelWarn: 警告
  • AlivcLivePushLogLevelError: 错误
  • AlivcLivePushLogLevelFatal: 阻塞错误

◆ NS_ENUM() [10/21]

typedef NS_ENUM ( NSInteger  ,
AlivcLivePushOrientation   
)

推流屏幕方向

  • AlivcLivePushOrientationPortrait: 竖屏推流
  • AlivcLivePushOrientationLandscapeLeft: 横屏Left方向
  • AlivcLivePushOrientationLandscapeRight: 横屏Right方向

◆ NS_ENUM() [11/21]

typedef NS_ENUM ( NSInteger  ,
AlivcLivePushPublishType   
)

推流协议

  • AlivcLivePushPublishType_RTMP: RTMP协议推流
  • AlivcLivePushPublishType_RTP: RTP协议推流

◆ NS_ENUM() [12/21]

typedef NS_ENUM ( NSInteger  ,
AlivcLivePushQualityMode   
)

推流模式

  • AlivcLivePushQualityModeResolutionFirst: 清晰度优先模式
  • AlivcLivePushQualityModeFluencyFirst: 流畅度优先模式
  • AlivcLivePushQualityModeCustom: 自定义模式

◆ NS_ENUM() [13/21]

typedef NS_ENUM ( NSInteger  ,
AlivcLivePushResolution   
)

分辨率

  • AlivcLivePushResolution180P: 180P
  • AlivcLivePushResolution240P: 240P
  • AlivcLivePushResolution360P: 360P
  • AlivcLivePushResolution480P: 480P
  • AlivcLivePushResolution540P: 540P
  • AlivcLivePushResolution720P: 720P
  • AlivcLivePushResolution1080P:1080P
  • AlivcLivePushResolutionPassThrough: pass through only used for external main video stream

◆ NS_ENUM() [14/21]

typedef NS_ENUM ( NSInteger  ,
AlivcLivePushScallingMode   
)

缩放模式

  • AlivcLivePushScallingModeFit: 填充
  • AlivcLivePushScallingModeCrop: 裁剪

◆ NS_ENUM() [15/21]

typedef NS_ENUM ( NSInteger  ,
AlivcLivePushStatus   
)

推流状态

  • AlivcLivePushStatusIdle: 空闲
  • AlivcLivePushStatusInitialized: 初始化成功
  • AlivcLivePushStatusPreviewing: 打开预览中
  • AlivcLivePushStatusPreviewed: 正在预览
  • AlivcLivePushStatusPushing: 推流连接中
  • AlivcLivePushStatusPushed: 正在推流
  • AlivcLivePushStatusStoping: 停止推流中
  • AlivcLivePushStatusPausing: 暂停推流中
  • AlivcLivePushStatusPaused: 暂停推流
  • AlivcLivePushStatusResuming: 恢复推流中
  • AlivcLivePushStatusRestarting: 重启推流中
  • AlivcLivePushStatusError: 错误状态

◆ NS_ENUM() [16/21]

typedef NS_ENUM ( NSInteger  ,
AlivcLivePushVideoEncodeGOP   
)

关键帧间隔

  • AlivcLivePushVideoEncodeGOP_1: 1s
  • AlivcLivePushVideoEncodeGOP_2: 2s
  • AlivcLivePushVideoEncodeGOP_3: 3s
  • AlivcLivePushVideoEncodeGOP_4: 4s
  • AlivcLivePushVideoEncodeGOP_5: 5s

◆ NS_ENUM() [17/21]

typedef NS_ENUM ( NSInteger  ,
AlivcLivePushVideoEncoderMode   
)

视频编码模式

  • AlivcLivePushVideoEncoderModeHard: 硬编码
  • AlivcLivePushVideoEncoderModeSoft: 软编码

◆ NS_ENUM() [18/21]

typedef NS_ENUM ( NSInteger  ,
AlivcLivePushVideoEncoderModeHardCodec   
)

硬编码方式

  • AlivcLivePushVideoEncoderModeHardTypeH264: 使用H264硬编码
  • AlivcLivePushVideoEncoderModeHardTypeHEVC: 使用H265硬编码

◆ NS_ENUM() [19/21]

typedef NS_ENUM ( NSInteger  ,
AlivcLivePushVideoFormat   
)

Image format.

◆ NS_ENUM() [20/21]

typedef NS_ENUM ( NSInteger  ,
AlivcPusherErrorCode   
)

接口返回值错误码

◆ NS_ENUM() [21/21]

typedef NS_ENUM ( NSInteger  ,
AlivcPusherPreviewDisplayMode   
)

预览窗口显示模式