TuSDKLiveVideoCamera Class Reference
Inherits from | TuSDKVideoCameraBase : SLGPUImageStillCamera |
---|---|
Declared in | TuSDKLiveVideoCamera.h |
+ initWithSessionPreset:cameraPosition:cameraView:
初始化相机
+ (instancetype)initWithSessionPreset:(NSString *)sessionPreset cameraPosition:(AVCaptureDevicePosition)cameraPosition cameraView:(UIView *)view
Parameters
sessionPreset |
相机分辨率类型 |
---|---|
cameraPosition |
相机设备标识 (前置或后置) |
view |
相机显示容器视图 |
Return Value
相机对象
Declared In
TuSDKLiveVideoCamera.h
– initWithAudioBitRate:audioSampleRate:
音频配置初始化
- (void)initWithAudioBitRate:(NSUInteger)audioBitRate audioSampleRate:(NSUInteger)audioSampleRate
Parameters
audioBitRate |
音频码率 |
---|---|
audioSampleRate |
音频采用率 |
Declared In
TuSDKLiveVideoCamera.h
videoDelegate
相机事件委托
@property (nonatomic, weak) id<TuSDKLiveVideoCameraDelegate> videoDelegate
Declared In
TuSDKLiveVideoCamera.h
pixelFormatType
输出 PixelBuffer 格式,可选: lsqFormatTypeBGRA | lsqFormatTypeYUV420F | lsqFormatTypeRawData 默认:lsqFormatTypeBGRA
@property (nonatomic) lsqFrameFormatType pixelFormatType
Declared In
TuSDKLiveVideoCamera.h
enableAudioCapture
开启音频采集
@property (nonatomic, assign) BOOL enableAudioCapture
Declared In
TuSDKLiveVideoCamera.h