TuSDKVideoCameraDelegate Protocol Reference

Conforms to NSObject
Declared in TuSDKVideoCameraInterface.h

Overview

相机事件委托

– onVideoCamera:stateChanged:

相机状态改变 (如需操作UI线程, 请检查当前线程是否为主线程)

- (void)onVideoCamera:(id<TuSDKVideoCameraInterface>)camera stateChanged:(lsqCameraState)state

Parameters

camera

相机对象

state

相机运行状态

Declared In

TuSDKVideoCameraInterface.h

– onVideoCamera:filterChanged:

相机滤镜改变 (如需操作UI线程, 请检查当前线程是否为主线程)

- (void)onVideoCamera:(id<TuSDKVideoCameraInterface>)camera filterChanged:(TuSDKFilterWrap *)newFilter

Parameters

camera

相机对象

newFilter

新的滤镜对象

Declared In

TuSDKVideoCameraInterface.h

– onVideoCamera:takedResult:error:

获取拍摄图片 (如需操作UI线程, 请检查当前线程是否为主线程)

- (void)onVideoCamera:(id<TuSDKVideoCameraInterface>)camera takedResult:(TuSDKResult *)result error:(NSError *)error

Parameters

camera

相机对象

result

获取的结果

error

错误信息

Declared In

TuSDKVideoCameraInterface.h

– onVideoCamera:sampleBuffer:

原始帧采样缓冲数据

- (void)onVideoCamera:(id<TuSDKVideoCameraInterface>)camera sampleBuffer:(CMSampleBufferRef)sampleBuffer

Parameters

camera

camera对象

sampleBuffer

帧采样缓冲

Declared In

TuSDKVideoCameraInterface.h