Tuya iOS Smart Life App SDK 5.15.0
<ThingCameraDelegate> Protocol Reference

#import <ThingCamera.h>

Inheritance diagram for <ThingCameraDelegate>:

Instance Methods

(void) - device:didVideoFrameRecvedWithSampleBuffer:videoFrameInfo:
 
(void) - device:didLocalVideoRecvedWithSampleBuffer:width:height:
 
(void) - device:didEventReceivedEventType:errorCode:intValue:strValue:
 
(void) - device:didAudioDataRecvedWithPCM:length:audioFrameInfo:
 
(void) - device:didAudioPlayWithAudioInfo:
 
(void) - device:didSessionStatusChangedWithStatus:
 
(void) - device:didAudioRecordDataReceiveWithPCM:length:sampleRate:channel:
 
(int) - device:didRemoteRequestReceivedWithType:requestId:
 
(void) - device:didVideoFrameRecvedWithSampleBuffer:videoFrameInfo:
 
(void) - device:didLocalVideoRecvedWithSampleBuffer:width:height:
 
(void) - device:didEventReceivedEventType:errorCode:intValue:strValue:
 
(void) - device:didAudioDataRecvedWithPCM:length:audioFrameInfo:
 
(void) - device:didAudioPlayWithAudioInfo:
 
(void) - device:didSessionStatusChangedWithStatus:
 
(void) - device:didAudioRecordDataReceiveWithPCM:length:sampleRate:channel:
 
(int) - device:didRemoteRequestReceivedWithType:requestId:
 

Detailed Description

Definition at line 818 of file ThingCamera.h.

Method Documentation

◆ device:didAudioDataRecvedWithPCM:length:audioFrameInfo: [1/2]

- (void) device: (ThingCamera *)  device
didAudioDataRecvedWithPCM: (const unsigned char *)  pcm
length: (unsigned int)  PCMLength
audioFrameInfo: (ThingAudioFrameInfo *)  audioInfo 
optional

Description The decoded audio data callback

Parameters
deviceWhich camera the data belong to.
pcmPCM data
PCMLengthPCM data size
audioInfoAudio metadata, see ThingAudioFrameInfo.

◆ device:didAudioDataRecvedWithPCM:length:audioFrameInfo: [2/2]

- (void) device: (ThingCamera *)  device
didAudioDataRecvedWithPCM: (const unsigned char *)  pcm
length: (unsigned int)  PCMLength
audioFrameInfo: (ThingAudioFrameInfo *)  audioInfo 
optional

Description The decoded audio data callback

Parameters
deviceWhich camera the data belong to.
pcmPCM data
PCMLengthPCM data size
audioInfoAudio metadata, see ThingAudioFrameInfo.

◆ device:didAudioPlayWithAudioInfo: [1/2]

- (void) device: (ThingCamera *)  device
didAudioPlayWithAudioInfo: (ThingAudioFrameInfo *)  audioInfo 
optional

Description The decoded audio data callback

Parameters
deviceWhich camera the data belong to.
audioInfoAudio metadata, see ThingAudioFrameInfo.

◆ device:didAudioPlayWithAudioInfo: [2/2]

- (void) device: (ThingCamera *)  device
didAudioPlayWithAudioInfo: (ThingAudioFrameInfo *)  audioInfo 
optional

Description The decoded audio data callback

Parameters
deviceWhich camera the data belong to.
audioInfoAudio metadata, see ThingAudioFrameInfo.

◆ device:didAudioRecordDataReceiveWithPCM:length:sampleRate:channel: [1/2]

- (void) device: (ThingCamera *)  device
didAudioRecordDataReceiveWithPCM: (const unsigned char *)  pcm
length: (int)  length
sampleRate: (int)  samplRate
channel: (int)  channel 
optional

Description The audo record data callback

Parameters
deviceWhich camera the data belong to.
pcmthe audio data.
lengththe pcm length. size in byte
samplRatethe sample rate of the audio data

◆ device:didAudioRecordDataReceiveWithPCM:length:sampleRate:channel: [2/2]

- (void) device: (ThingCamera *)  device
didAudioRecordDataReceiveWithPCM: (const unsigned char *)  pcm
length: (int)  length
sampleRate: (int)  samplRate
channel: (int)  channel 
optional

Description The audo record data callback

Parameters
deviceWhich camera the data belong to.
pcmthe audio data.
lengththe pcm length. size in byte
samplRatethe sample rate of the audio data

◆ device:didEventReceivedEventType:errorCode:intValue:strValue: [1/2]

- (void) device: (ThingCamera *)  device
didEventReceivedEventType: (THING_EVENT_TYPE_E event
errorCode: (int)  error
intValue: (long long)  intValue
strValue: (NSString *)  strValue 
optional

Description The Event info callback.

Parameters
deviceWhich camera the data belong to.
eventcamera event type , defined in THING_EVENT_TYPE_E
errorerror code, defined in THING_EVENT_ERROR_CODE_E
intValueintValue
strValuestrValue

◆ device:didEventReceivedEventType:errorCode:intValue:strValue: [2/2]

- (void) device: (ThingCamera *)  device
didEventReceivedEventType: (THING_EVENT_TYPE_E event
errorCode: (int)  error
intValue: (long long)  intValue
strValue: (NSString *)  strValue 
optional

Description The Event info callback.

Parameters
deviceWhich camera the data belong to.
eventcamera event type , defined in THING_EVENT_TYPE_E
errorerror code, defined in THING_EVENT_ERROR_CODE_E
intValueintValue
strValuestrValue

◆ device:didLocalVideoRecvedWithSampleBuffer:width:height: [1/2]

- (void) device: (ThingCamera *)  device
didLocalVideoRecvedWithSampleBuffer: (CMSampleBufferRef)  sampleBuffer
width: (int)  width
height: (int)  height 
optional

◆ device:didLocalVideoRecvedWithSampleBuffer:width:height: [2/2]

- (void) device: (ThingCamera *)  device
didLocalVideoRecvedWithSampleBuffer: (CMSampleBufferRef)  sampleBuffer
width: (int)  width
height: (int)  height 
optional

◆ device:didRemoteRequestReceivedWithType:requestId: [1/2]

- (int) device: (ThingCamera *)  device
didRemoteRequestReceivedWithType: (ThingRequestType operation
requestId: (int)  requestId 
optional

◆ device:didRemoteRequestReceivedWithType:requestId: [2/2]

- (int) device: (ThingCamera *)  device
didRemoteRequestReceivedWithType: (ThingRequestType operation
requestId: (int)  requestId 
optional

◆ device:didSessionStatusChangedWithStatus: [1/2]

- (void) device: (ThingCamera *)  device
didSessionStatusChangedWithStatus: (NSInteger)  status 
optional

Description session Session status callback immediately when it changes.

Parameters
deviceWhich camera.
statusCurrent session status.

◆ device:didSessionStatusChangedWithStatus: [2/2]

- (void) device: (ThingCamera *)  device
didSessionStatusChangedWithStatus: (NSInteger)  status 
optional

Description session Session status callback immediately when it changes.

Parameters
deviceWhich camera.
statusCurrent session status.

◆ device:didVideoFrameRecvedWithSampleBuffer:videoFrameInfo: [1/2]

- (void) device: (ThingCamera *)  device
didVideoFrameRecvedWithSampleBuffer: (CMSampleBufferRef)  sampleBuffer
videoFrameInfo: (ThingVideoFrameInfo *)  videoFrameInfo 
optional

Description The decoded image data callback.

Parameters
deviceWhich camera the data belong to.
sampleBufferOne decoded CMSampleBufferRef image data.
videoFrameInfoVideo frame metadata, see ThingVideoFrameInfo.

◆ device:didVideoFrameRecvedWithSampleBuffer:videoFrameInfo: [2/2]

- (void) device: (ThingCamera *)  device
didVideoFrameRecvedWithSampleBuffer: (CMSampleBufferRef)  sampleBuffer
videoFrameInfo: (ThingVideoFrameInfo *)  videoFrameInfo 
optional

Description The decoded image data callback.

Parameters
deviceWhich camera the data belong to.
sampleBufferOne decoded CMSampleBufferRef image data.
videoFrameInfoVideo frame metadata, see ThingVideoFrameInfo.

The documentation for this protocol was generated from the following files: