JRTCSDK-iOS v2401.0
视频客服 API 文档
载入中...
搜索中...
未找到
| 枚举
设备模块

protocol  <AudioInputFrameCallback>
 
protocol  <VideoCaptureFrameCallback>
 
class  JRTCMediaDeviceCamera
 摄像头 更多...
 
class  JRTCMediaDeviceAudio
 音频设备,mac 使用 更多...
 
class  JRTCMediaDeviceWindow
 窗口实体类,mac 使用 更多...
 
class  JRTCMediaDeviceAudioParam
 音频参数 更多...
 
class  JRTCMediaDevice
 音视频设备管理 更多...
 
protocol  <JRTCMediaDeviceCallback>
 音视频设备相关事件回调 更多...
 
protocol  <JRTCMediaDeviceVideoFrameCallback>
 视频帧数据回调 更多...
 
class  JRTCMediaDeviceVideoCanvas
 
class  JRTCRecordWatermark
 
class  JRTCRecordWatermarkImage
 
class  JRTCRecordWatermarkText
 
class  JRTCRecordWatermarkTimeStamp
 
class  JRTCRecordVideoCaptureParam
 
class  JRTCSystemPhone
 
class  JRTCBroadcastSampleHandler
 屏幕采集 更多...
 

枚举

enum  JRTCMediaDeviceRotateAngle : NSInteger { JRTCMediaDeviceRotateAngle0 = 0 , JRTCMediaDeviceRotateAngle90 = 90 , JRTCMediaDeviceRotateAngle180 = 180 , JRTCMediaDeviceRotateAngle270 = 270 }
 
enum  JRTCMediaDeviceRender : NSInteger { JRTCMediaDeviceRenderFullScreen = 0 , JRTCMediaDeviceRenderFullContent , JRTCMediaDeviceRenderFullAuto }
 
enum  JRTCMediaDeviceCameraType : NSInteger { JRTCMediaDeviceCameraTypeNone = 0 , JRTCMediaDeviceCameraTypeFront = 1 , JRTCMediaDeviceCameraTypeBack = 2 , JRTCMediaDeviceCameraTypeUnknown = 3 }
 
enum  JRTCMediaDeviceVideoAngle : NSInteger {
  JRTCMediaDeviceVideoAngleAuto = -1 , JRTCMediaDeviceVideoAngle0 = 0 , JRTCMediaDeviceVideoAngle90 = 90 , JRTCMediaDeviceVideoAngle180 = 180 ,
  JRTCMediaDeviceVideoAngle270 = 270
}
 
enum  JRTCMediaDeviceVideoPixelFormat : NSInteger {
  JRTCMediaDeviceVideoPixelFormatI420 = 1 , JRTCMediaDeviceVideoPixelFormatIYUV = 2 , JRTCMediaDeviceVideoPixelFormatRGB24 = 3 , JRTCMediaDeviceVideoPixelFormatABGR = 4 ,
  JRTCMediaDeviceVideoPixelFormatARGB = 5 , JRTCMediaDeviceVideoPixelFormatARGB444 = 6 , JRTCMediaDeviceVideoPixelFormatRGB565 = 7 , JRTCMediaDeviceVideoPixelFormatARGB1555 = 8 ,
  JRTCMediaDeviceVideoPixelFormatYUY2 = 9 , JRTCMediaDeviceVideoPixelFormatYV12 = 10 , JRTCMediaDeviceVideoPixelFormatUYVY = 11 , JRTCMediaDeviceVideoPixelFormatMJPG = 12 ,
  JRTCMediaDeviceVideoPixelFormatNV21 = 13 , JRTCMediaDeviceVideoPixelFormatNV12 = 14 , JRTCMediaDeviceVideoPixelFormatBGRA = 15
}
 
enum  JRTCAudioRecordFileType : NSInteger {
  JRTCAudioRecordFilePcm = 0 , JRTCAudioRecordFileWavPcm = 1 , JRTCAudioRecordFileWavPcmu = 2 , JRTCAudioRecordFileWavPcma = 3 ,
  JRTCAudioRecordFileWavAmr = 4
}
 
enum  JRTCVideoRecordFileType : NSInteger {
  JRTCVideoRecordFileAviVp8 = 0 , JRTCVideoRecordFileAviI420 = 1 , JRTCVideoRecordFileAviH264 = 2 , JRTCVideoRecordFileMp4H264 = 3 ,
  JRTCVideoRecordFileMp4AV1 = 4
}
 
enum  JRTCRecordAudioSource : NSInteger { JRTCRecordAudioNo = 0 , JRTCRecordAudioFromMicrophone = 1 , JRTCRecordAudioFromSpeaker = 2 , JRTCRecordAudioBoth = 3 }
 
enum  JRTCMediaDeviceAudioRouteType : NSInteger {
  JRTCMediaDeviceAudioRouteTypeUnknown = -1 , JRTCMediaDeviceAudioRouteTypeReceiver = 0 , JRTCMediaDeviceAudioRouteTypeSpeaker = 1 , JRTCMediaDeviceAudioRouteTypeHeadset = 2 ,
  JRTCMediaDeviceAudioRouteTypeBluetooth = 3
}
 
enum  JRTCMediaDeviceTestType : NSInteger { JRTCMediaDeviceTestTypeMic = 1 , JRTCMediaDeviceTestTypeSpk }
 
enum  JRTCMediaDeviceVideoErrorType : NSInteger { JRTCMediaDeviceVideoErrorOther = 0 , JRTCMediaDeviceVideoErrorCamera , JRTCMediaDeviceVideoErrorScreen , JRTCMediaDeviceVideoErrorRender }
 

详细描述

枚举类型说明

◆ JRTCAudioRecordFileType

enum JRTCAudioRecordFileType : NSInteger

音频录制文件编码封装格式类型

枚举值
JRTCAudioRecordFilePcm 

封装格式PCM,编码格式PCM

JRTCAudioRecordFileWavPcm 

封装格式WAV,编码格式PCM

JRTCAudioRecordFileWavPcmu 

封装格式WAV,编码格式PCMU

JRTCAudioRecordFileWavPcma 

封装格式WAV,编码格式PCMA

JRTCAudioRecordFileWavAmr 

封装格式WAV,编码格式AMR

◆ JRTCMediaDeviceAudioRouteType

音频输出通道类型

枚举值
JRTCMediaDeviceAudioRouteTypeUnknown 

未知类型

JRTCMediaDeviceAudioRouteTypeReceiver 

听筒

JRTCMediaDeviceAudioRouteTypeSpeaker 

扬声器

JRTCMediaDeviceAudioRouteTypeHeadset 

有线耳机

JRTCMediaDeviceAudioRouteTypeBluetooth 

蓝牙耳机

◆ JRTCMediaDeviceCameraType

enum JRTCMediaDeviceCameraType : NSInteger

摄像头类型

枚举值
JRTCMediaDeviceCameraTypeNone 

未获取到摄像头

JRTCMediaDeviceCameraTypeFront 

前置摄像头

JRTCMediaDeviceCameraTypeBack 

后置摄像头

JRTCMediaDeviceCameraTypeUnknown 

未知摄像头

◆ JRTCMediaDeviceRender

enum JRTCMediaDeviceRender : NSInteger

渲染模式

枚举值
JRTCMediaDeviceRenderFullScreen 

视频图像按比例填充整个渲染区域(裁剪掉超出渲染区域的部分区域)

JRTCMediaDeviceRenderFullContent 

视频图像的内容完全呈现到渲染区域(可能会出现黑边,类似放电影的荧幕)

JRTCMediaDeviceRenderFullAuto 

自适应

◆ JRTCMediaDeviceRotateAngle

enum JRTCMediaDeviceRotateAngle : NSInteger

窗口与屏幕角度

枚举值
JRTCMediaDeviceRotateAngle0 

窗口与屏幕角度 0

JRTCMediaDeviceRotateAngle90 

窗口与屏幕角度 90

JRTCMediaDeviceRotateAngle180 

窗口与屏幕角度 180

JRTCMediaDeviceRotateAngle270 

窗口与屏幕角度 270

◆ JRTCMediaDeviceTestType

enum JRTCMediaDeviceTestType : NSInteger

音频设备检测类型

枚举值
JRTCMediaDeviceTestTypeMic 

麦克风

JRTCMediaDeviceTestTypeSpk 

扬声器

◆ JRTCMediaDeviceVideoAngle

enum JRTCMediaDeviceVideoAngle : NSInteger

视频旋转角度

枚举值
JRTCMediaDeviceVideoAngleAuto 

自动

JRTCMediaDeviceVideoAngle0 

JRTCMediaDeviceVideoAngle90 

90°

JRTCMediaDeviceVideoAngle180 

180°

JRTCMediaDeviceVideoAngle270 

270°

◆ JRTCMediaDeviceVideoErrorType

视频异常类型

枚举值
JRTCMediaDeviceVideoErrorOther 

其他未知异常

JRTCMediaDeviceVideoErrorCamera 

摄像头异常

JRTCMediaDeviceVideoErrorScreen 

屏幕采集异常

JRTCMediaDeviceVideoErrorRender 

视频渲染异常

◆ JRTCMediaDeviceVideoPixelFormat

视频像素格式

枚举值
JRTCMediaDeviceVideoPixelFormatI420 

I420

JRTCMediaDeviceVideoPixelFormatIYUV 

IYUV

JRTCMediaDeviceVideoPixelFormatRGB24 

RGB24

JRTCMediaDeviceVideoPixelFormatABGR 

ABGR

JRTCMediaDeviceVideoPixelFormatARGB 

ARGB

JRTCMediaDeviceVideoPixelFormatARGB444 

ARGB444

JRTCMediaDeviceVideoPixelFormatRGB565 

RGB565

JRTCMediaDeviceVideoPixelFormatARGB1555 

ARGB1555

JRTCMediaDeviceVideoPixelFormatYUY2 

YUY2

JRTCMediaDeviceVideoPixelFormatYV12 

YV12

JRTCMediaDeviceVideoPixelFormatUYVY 

UYVY

JRTCMediaDeviceVideoPixelFormatMJPG 

MJPG

JRTCMediaDeviceVideoPixelFormatNV21 

NV21

JRTCMediaDeviceVideoPixelFormatNV12 

NV12

JRTCMediaDeviceVideoPixelFormatBGRA 

BGRA

◆ JRTCRecordAudioSource

enum JRTCRecordAudioSource : NSInteger

音视频录制音频采集源

枚举值
JRTCRecordAudioNo 

不录制音频

注解
当音频录制时该类型无效
JRTCRecordAudioFromMicrophone 

录制输入音频

JRTCRecordAudioFromSpeaker 

录制输出音频

JRTCRecordAudioBoth 

录制输入音频和输出音频

◆ JRTCVideoRecordFileType

enum JRTCVideoRecordFileType : NSInteger

视频录制文件编码封装格式类型

枚举值
JRTCVideoRecordFileAviVp8 

封装格式AVI,视频编码格式VP8, 音频编码格式PCM

JRTCVideoRecordFileAviI420 

封装格式AVI,视频编码格式I420, 音频编码格式PCM

JRTCVideoRecordFileAviH264 

封装格式AVI,视频编码格式H264, 音频编码格式PCM

JRTCVideoRecordFileMp4H264 

封装格式MP4,视频编码格式H264,音频编码格式AAC

JRTCVideoRecordFileMp4AV1 

封装格式MP4,视频编码格式AV1,音频编码格式AAC