![]() |
Tuya iOS Smart Life App SDK 5.15.0
|
#import <ThingCamera.h>
Properties | |
NSString * | deviceId |
id< ThingCameraDelegate > | delegate |
Definition at line 15 of file ThingCamera.h.
- (int) cancelCloudDataDownload |
- (int) cancelCloudDataDownload |
- (int) cancelConvertIFrameToImageForVideoMessage |
- (int) cancelConvertIFrameToImageForVideoMessage |
- (int) cancelDownloadAlbumFileWithCallback: | (void(^)(const char *msg, int errCode)) | onResponse |
- (int) cancelDownloadAlbumFileWithCallback: | (void(^)(const char *msg, int errCode)) | onResponse |
- (int) cancelVideoMessageDownload |
- (int) cancelVideoMessageDownload |
- (int) configCloudDataTags: | (NSString *) | jsonCloudDataTags |
Description Config cloud data tags.
jsonCloudDataTags | Cloud data tags, json get from http server. |
- (int) configCloudDataTags: | (NSString *) | jsonCloudDataTags |
Description Config cloud data tags.
jsonCloudDataTags | Cloud data tags, json get from http server. |
- (NSString *) configCloudDataTagsV2: | (NSString *) | jsonCloudDataTags |
Description Config cloud data tags (microsoft cloud).
jsonCloudDataTags | Cloud data tags, json get from http server. |
- (NSString *) configCloudDataTagsV2: | (NSString *) | jsonCloudDataTags |
Description Config cloud data tags (microsoft cloud).
jsonCloudDataTags | Cloud data tags, json get from http server. |
- (int) connectWithUserName: | (NSString *) | username | |
password: | (NSString *) | password | |
serverString: | (NSString *) | serverString | |
traceId: | (NSString *) | traceId | |
- (int) connectWithUserName: | (NSString *) | username | |
password: | (NSString *) | password | |
serverString: | (NSString *) | serverString | |
traceId: | (NSString *) | traceId | |
- (int) connectWithUserName: | (NSString *) | username | |
password: | (NSString *) | password | |
token: | (NSString *) | token | |
skills: | (NSString *) | skills | |
traceId: | (NSString *) | traceId | |
forceToLANmode: | (BOOL) | lanMode | |
- (int) connectWithUserName: | (NSString *) | username | |
password: | (NSString *) | password | |
token: | (NSString *) | token | |
skills: | (NSString *) | skills | |
traceId: | (NSString *) | traceId | |
forceToLANmode: | (BOOL) | lanMode | |
- (int) connectWithUserName: | (NSString *) | username | |
password: | (NSString *) | password | |
token: | (NSString *) | token | |
skills: | (NSString *) | skills | |
traceId: | (NSString *) | traceId | |
forceToLANmode: | (BOOL) | lanMode | |
connectOption: | (int) | connectOption | |
connect to camera.
username | : username |
password | : password |
token | : token |
skills | : skill |
traceId | : traceid |
lanMode | : forceToLANmode |
connectOption | : connectOption 0 – close preconnect 1 – open preconnect. |
- (int) connectWithUserName: | (NSString *) | username | |
password: | (NSString *) | password | |
token: | (NSString *) | token | |
skills: | (NSString *) | skills | |
traceId: | (NSString *) | traceId | |
forceToLANmode: | (BOOL) | lanMode | |
connectOption: | (int) | connectOption | |
connect to camera.
username | : username |
password | : password |
token | : token |
skills | : skill |
traceId | : traceid |
lanMode | : forceToLANmode |
connectOption | : connectOption 0 – close preconnect 1 – open preconnect. |
- (int) deleteAlbumFileWithAlbumName: | (NSString *) | albumName | |
jsonfiles: | (NSString *) | jsonfiles | |
onResponse: | (void(^)(const char *msg, int errCode)) | onResponse | |
onFinish: | (void(^)(const char *msg, int errCode)) | finishedCallBack | |
- (int) deleteAlbumFileWithAlbumName: | (NSString *) | albumName | |
jsonfiles: | (NSString *) | jsonfiles | |
onResponse: | (void(^)(const char *msg, int errCode)) | onResponse | |
onFinish: | (void(^)(const char *msg, int errCode)) | finishedCallBack | |
- (int) deletePlayBackDataWithDay: | (NSString *) | day | |
onResponse: | (void(^)(const char *msg, int errCode)) | onResponse | |
onFinish: | (void(^)(const char *msg, int errCode)) | finishedCallBack | |
Description Stop current sd card playback.
day | : the day need to delete. |
onResponse | : Async result callback. errCode see ThingErrCode. |
finishedCallBack | : Async delete result callback. errCode see ThingErrCode |
- (int) deletePlayBackDataWithDay: | (NSString *) | day | |
onResponse: | (void(^)(const char *msg, int errCode)) | onResponse | |
onFinish: | (void(^)(const char *msg, int errCode)) | finishedCallBack | |
Description Stop current sd card playback.
day | : the day need to delete. |
onResponse | : Async result callback. errCode see ThingErrCode. |
finishedCallBack | : Async delete result callback. errCode see ThingErrCode |
- (int) deletePlayBackDataWithFragments: | (NSString *) | json | |
onResponse: | (void(^)(const char *msg, int errCode)) | onResponse | |
onFinish: | (void(^)(const char *msg, int errCode)) | finishedCallBack | |
Description Stop current sd card playback.
json | : the fragments need to delete. {"fragments":[{ "startTime":xxx, "endTime":xxx },{ "startTime":xxx, "endTime":xxx }]} |
onResponse | : Async result callback. errCode see ThingErrCode. |
finishedCallBack | : Async delete result callback. errCode see ThingErrCode |
- (int) deletePlayBackDataWithFragments: | (NSString *) | json | |
onResponse: | (void(^)(const char *msg, int errCode)) | onResponse | |
onFinish: | (void(^)(const char *msg, int errCode)) | finishedCallBack | |
Description Stop current sd card playback.
json | : the fragments need to delete. {"fragments":[{ "startTime":xxx, "endTime":xxx },{ "startTime":xxx, "endTime":xxx }]} |
onResponse | : Async result callback. errCode see ThingErrCode. |
finishedCallBack | : Async delete result callback. errCode see ThingErrCode |
- (int) disconnect |
- (int) disconnect |
- (int) disconnectWithForced: | (BOOL) | forced |
disconnect forced or not.
- (int) disconnectWithForced: | (BOOL) | forced |
disconnect forced or not.
- (int) downloadPlayBackImageWithStartTime: | (int) | startTime | |
stopTime: | (int) | stopTime | |
FolderPath: | (NSString *) | folderPath | |
saveFileName: | (NSString *) | saveFileName | |
onResponse: | (void(^)(const char *msg, int errCode)) | onResponse | |
Description download the playback event image.
startTime | fragment start timestamp(unix). |
stopTime | fragment end timestamp(unix). |
folder | the local folder u need to save it. |
saveFileName | the local file name u need to save it . |
onResponse | Async result callback. errCode see ThingErrCode.. |
- (int) downloadPlayBackImageWithStartTime: | (int) | startTime | |
stopTime: | (int) | stopTime | |
FolderPath: | (NSString *) | folderPath | |
saveFileName: | (NSString *) | saveFileName | |
onResponse: | (void(^)(const char *msg, int errCode)) | onResponse | |
Description download the playback event image.
startTime | fragment start timestamp(unix). |
stopTime | fragment end timestamp(unix). |
folder | the local folder u need to save it. |
saveFileName | the local file name u need to save it . |
onResponse | Async result callback. errCode see ThingErrCode.. |
- (int) enableAudioAEC: | (bool) | enable |
eanble AEC or not enable : YES or NO
- (int) enableAudioAEC: | (bool) | enable |
eanble AEC or not enable : YES or NO
- (int) enableAudioAGC: | (bool) | enable |
enable AGC or not enable : YES or NO
- (int) enableAudioAGC: | (bool) | enable |
enable AGC or not enable : YES or NO
- (int) enableAudioEffect: | (bool) | enable |
enable Audio effect.
- (int) enableAudioEffect: | (bool) | enable |
enable Audio effect.
- (int) enableAudioNS: | (bool) | enable |
enable NS or not enable : YES or NO
- (int) enableAudioNS: | (bool) | enable |
enable NS or not enable : YES or NO
- (int) enableIVA: | (BOOL) | enable |
Description drame active object frame supported or not
enable | drame active object frame supported or not |
- (int) enableIVA: | (BOOL) | enable |
Description drame active object frame supported or not
enable | drame active object frame supported or not |
- (int) getAudioTalkParams: | (void(^)(const char *result, int errCode)) | onResponse |
Description Get audio params from device(sample rate, bitwidth, channels).
onResponse | Async result callback. errCode see ThingErrCode. |
- (int) getAudioTalkParams: | (void(^)(const char *result, int errCode)) | onResponse |
Description Get audio params from device(sample rate, bitwidth, channels).
onResponse | Async result callback. errCode see ThingErrCode. |
- (char *) getCloudUrlsWithStartTime: | (int) | startTime | |
endTime: | (int) | endTime | |
isEvent: | (bool) | isEvent | |
authParams: | (NSString *) | jsonAuthParams | |
encryptKey: | (NSString *) | encryptKey | |
- (char *) getCloudUrlsWithStartTime: | (int) | startTime | |
endTime: | (int) | endTime | |
isEvent: | (bool) | isEvent | |
authParams: | (NSString *) | jsonAuthParams | |
encryptKey: | (NSString *) | encryptKey | |
- (double) getInstantaneousBitRateKBps |
- (double) getInstantaneousBitRateKBps |
- (int) getSDEventFragmentsWithPageId: | (int) | pageId | |
day: | (NSString *) | day | |
onResponse: | (void(^)(const char *msg, int errCode)) | onResponse | |
Description Get events by day and pageId.
pageId | >= 0 |
day | format:"20180425" |
onResponse | Async result callback. errCode see ThingErrCode. |
- (int) getSDEventFragmentsWithPageId: | (int) | pageId | |
day: | (NSString *) | day | |
onResponse: | (void(^)(const char *msg, int errCode)) | onResponse | |
Description Get events by day and pageId.
pageId | >= 0 |
day | format:"20180425" |
onResponse | Async result callback. errCode see ThingErrCode. |
- (int) getSDRecordDaysWithMonth: | (NSString *) | month | |
onResponse: | (void(^)(const char *msg, int errCode)) | onResponse | |
set audio capability of device
capability | : 0 – mic and speaker not supported 1 – mic supported only 2 – speaker supported only 3 – mic and speaker supported Description Get alarm days in one month. |
month | format:"201804" |
onResponse | Async result callback. errCode see ThingErrCode. |
- (int) getSDRecordDaysWithMonth: | (NSString *) | month | |
onResponse: | (void(^)(const char *msg, int errCode)) | onResponse | |
set audio capability of device
capability | : 0 – mic and speaker not supported 1 – mic supported only 2 – speaker supported only 3 – mic and speaker supported Description Get alarm days in one month. |
month | format:"201804" |
onResponse | Async result callback. errCode see ThingErrCode. |
- (int) getSDRecordFragmentsV2WithDay: | (NSString *) | day | |
onResponse: | (void(^)(const char *msg, int errCode)) | onResponse | |
Description Get alarms by day. local data encrypt supported
day | format:"20180425" |
onResponse | Async result callback. errCode see ThingErrCode. |
- (int) getSDRecordFragmentsV2WithDay: | (NSString *) | day | |
onResponse: | (void(^)(const char *msg, int errCode)) | onResponse | |
Description Get alarms by day. local data encrypt supported
day | format:"20180425" |
onResponse | Async result callback. errCode see ThingErrCode. |
- (int) getSDRecordFragmentsWithDay: | (NSString *) | day | |
onResponse: | (void(^)(const char *msg, int errCode)) | onResponse | |
Description Get alarms by day.
day | format:"20180425" |
onResponse | Async result callback. errCode see ThingErrCode. |
- (int) getSDRecordFragmentsWithDay: | (NSString *) | day | |
onResponse: | (void(^)(const char *msg, int errCode)) | onResponse | |
Description Get alarms by day.
day | format:"20180425" |
onResponse | Async result callback. errCode see ThingErrCode. |
- (int) getSDRecordFragmentsWithPageId: | (int) | pageId | |
day: | (NSString *) | day | |
onResponse: | (void(^)(const char *msg, int errCode)) | onResponse | |
Description Get alarms by day and pageId.
pageId | >= 0 |
day | format:"20180425" |
onResponse | Async result callback. errCode see ThingErrCode. |
- (int) getSDRecordFragmentsWithPageId: | (int) | pageId | |
day: | (NSString *) | day | |
onResponse: | (void(^)(const char *msg, int errCode)) | onResponse | |
Description Get alarms by day and pageId.
pageId | >= 0 |
day | format:"20180425" |
onResponse | Async result callback. errCode see ThingErrCode. |
- (int) getVideoClarity: | (void(^)(const char *result, int errCode)) | onResponse |
Description Get device current video clarity mode and all support modes.
onResponse | Async result onResponse. currentClarity see TRANSFER_VIDEO_CLARITY_TYPE_E. supportClarity see TRANSFER_VIDEO_CLARITY_TYPE_E. errCode see ThingErrCode. |
- (int) getVideoClarity: | (void(^)(const char *result, int errCode)) | onResponse |
Description Get device current video clarity mode and all support modes.
onResponse | Async result onResponse. currentClarity see TRANSFER_VIDEO_CLARITY_TYPE_E. supportClarity see TRANSFER_VIDEO_CLARITY_TYPE_E. errCode see ThingErrCode. |
- (instancetype) initWithDeviceId: | (NSString *) | deviceId | |
p2pType: | (int) | p2pType | |
productId: | (NSString *) | NS_DESIGNATED_INITIALIZER | |
- (instancetype) initWithDeviceId: | (NSString *) | deviceId | |
p2pType: | (int) | p2pType | |
productId: | (NSString *) | NS_DESIGNATED_INITIALIZER | |
- (instancetype) initWithDeviceId: | (NSString *) | deviceId | |
stationId: | (NSString *) | stationId | |
nodeId: | (NSString *) | nodeid | |
p2pType: | (int) | p2pType | |
productId: | (NSString *) | NS_DESIGNATED_INITIALIZER | |
- (instancetype) initWithDeviceId: | (NSString *) | deviceId | |
stationId: | (NSString *) | stationId | |
nodeId: | (NSString *) | nodeid | |
p2pType: | (int) | p2pType | |
productId: | (NSString *) | NS_DESIGNATED_INITIALIZER | |
- (int) linkToNvrWithIndex: | (NSInteger) | index | |
session_id: | (NSInteger) | session_id | |
username: | (NSString *) | username | |
password: | (NSString *) | password | |
onResponse: | (void(^)(const char *msg, int errCode)) | onResponse | |
- (int) linkToNvrWithIndex: | (NSInteger) | index | |
session_id: | (NSInteger) | session_id | |
username: | (NSString *) | username | |
password: | (NSString *) | password | |
onResponse: | (void(^)(const char *msg, int errCode)) | onResponse | |
- (instancetype) NS_UNAVAILABLE |
- (instancetype) NS_UNAVAILABLE |
- (int) pauseCloudDataDownload |
- (int) pauseCloudDataDownload |
- (int) pausePlayAudioVideoMessage |
- (int) pausePlayAudioVideoMessage |
- (int) pausePlayBackDownloadWithResponse: | (void(^)(const char *msg, int errCode)) | onResponse |
pause download
- (int) pausePlayBackDownloadWithResponse: | (void(^)(const char *msg, int errCode)) | onResponse |
pause download
- (int) pausePlayBackWithResponse: | (void(^)(const char *msg, int errCode)) | onResponse |
Description Pause current sd card playback.
onResponse | Async result callback. errCode see ThingErrCode. |
- (int) pausePlayBackWithResponse: | (void(^)(const char *msg, int errCode)) | onResponse |
Description Pause current sd card playback.
onResponse | Async result callback. errCode see ThingErrCode. |
- (int) pausePlayCloudData |
Description Pause to play current cloud data.
- (int) pausePlayCloudData |
Description Pause to play current cloud data.
- (int) pausePlayVideoMessage |
- (int) pausePlayVideoMessage |
- (int) pauseVideoMessageDownload |
- (int) pauseVideoMessageDownload |
- (int) pauseVideoTalk: | (void(^)(const char *msg, int errCode)) | onResponse |
pause send video talk
- (int) pauseVideoTalk: | (void(^)(const char *msg, int errCode)) | onResponse |
pause send video talk
- (int) playCloudDataWithStartTime: | (int) | startTime | |
endTime: | (int) | endTime | |
isEvent: | (bool) | isEvent | |
authParams: | (NSString *) | jsonAuthParams | |
encryptKey: | (NSString *) | encryptKey | |
onResponse: | (void(^)(const char *msg, int errCode)) | onResponseonResponse | |
onFinish: | (void(^)(const char *msg, int errCode)) | finihedCallBack | |
Description Startup play cloud data.
startTime | The start time expect to play(unix time in second). |
endTime | The end time expect to stop(unix time in second). |
isEvent | If this is a event. |
jsonAuthParams | Auth data, get from http server. |
encryptKey | Encrypt key to tell sdk how to decrypt media data. |
finihedCallBack | Async result callback. errCode see ThingErrCode. |
- (int) playCloudDataWithStartTime: | (int) | startTime | |
endTime: | (int) | endTime | |
isEvent: | (bool) | isEvent | |
authParams: | (NSString *) | jsonAuthParams | |
encryptKey: | (NSString *) | encryptKey | |
onResponse: | (void(^)(const char *msg, int errCode)) | onResponseonResponse | |
onFinish: | (void(^)(const char *msg, int errCode)) | finihedCallBack | |
Description Startup play cloud data.
startTime | The start time expect to play(unix time in second). |
endTime | The end time expect to stop(unix time in second). |
isEvent | If this is a event. |
jsonAuthParams | Auth data, get from http server. |
encryptKey | Encrypt key to tell sdk how to decrypt media data. |
finihedCallBack | Async result callback. errCode see ThingErrCode. |
- (int) playVideoMessageWithUrl: | (NSString *) | url | |
startTime: | (int) | startTime | |
encryptKey: | (NSString *) | encryptKey | |
onResponse: | (void(^)(const char *msg, int errCode)) | onResponse | |
onFinish: | (void(^)(const char *msg, int errCode)) | onFinish | |
- (int) playVideoMessageWithUrl: | (NSString *) | url | |
startTime: | (int) | startTime | |
encryptKey: | (NSString *) | encryptKey | |
onResponse: | (void(^)(const char *msg, int errCode)) | onResponse | |
onFinish: | (void(^)(const char *msg, int errCode)) | onFinish | |
- (int) queryAlbumFileIndexWithAlbumName: | (NSString *) | albumName | |
onResponse: | (void(^)(const char *jsonindex, int errCode)) | onResponse | |
- (int) queryAlbumFileIndexWithAlbumName: | (NSString *) | albumName | |
onResponse: | (void(^)(const char *jsonindex, int errCode)) | onResponse | |
- (int) resumeCloudDataDownload |
- (int) resumeCloudDataDownload |
- (int) resumePlayAudioMessage |
- (int) resumePlayAudioMessage |
- (int) resumePlayBackDownloadWithResponse: | (void(^)(const char *msg, int errCode)) | onResponse |
resume download
- (int) resumePlayBackDownloadWithResponse: | (void(^)(const char *msg, int errCode)) | onResponse |
resume download
- (int) resumePlayBackWithResponse: | (void(^)(const char *msg, int errCode)) | onResponse |
Description Resume current sd card playback.
onResponse | Async result callback. errCode see ThingErrCode. |
- (int) resumePlayBackWithResponse: | (void(^)(const char *msg, int errCode)) | onResponse |
Description Resume current sd card playback.
onResponse | Async result callback. errCode see ThingErrCode. |
- (int) resumePlayCloudData |
Description Resume to play current cloud data.
- (int) resumePlayCloudData |
Description Resume to play current cloud data.
- (int) resumePlayVideoMessage |
- (int) resumePlayVideoMessage |
- (int) resumeVideoMessageDownload |
- (int) resumeVideoMessageDownload |
- (int) resumeVideoTalk: | (void(^)(const char *msg, int errCode)) | onResponse |
resume send video talk return : requestId errCode : requestId
- (int) resumeVideoTalk: | (void(^)(const char *msg, int errCode)) | onResponse |
resume send video talk return : requestId errCode : requestId
- (int) sendAudioDataWithPCM: | (unsigned char *) | data | |
length: | (int) | length | |
sampleRate: | (int) | sampleRate | |
Description Send audio data to device.
data | Audio data. |
length | Audio data size. |
- (int) sendAudioDataWithPCM: | (unsigned char *) | data | |
length: | (int) | length | |
sampleRate: | (int) | sampleRate | |
Description Send audio data to device.
data | Audio data. |
length | Audio data size. |
- (int) setAudioEffectParametersWithRobotizationSupported: | (bool) | robotSupported | |
pitch: | (float) | pitch | |
time_scale: | (float) | time_scale | |
norm_scale: | (float) | normal_amp_scale | |
robot_scale: | (float) | robot_amp_scale | |
set the audio effect parameters . pitch : scale : 1.0 ,other not supported.
- (int) setAudioEffectParametersWithRobotizationSupported: | (bool) | robotSupported | |
pitch: | (float) | pitch | |
time_scale: | (float) | time_scale | |
norm_scale: | (float) | normal_amp_scale | |
robot_scale: | (float) | robot_amp_scale | |
set the audio effect parameters . pitch : scale : 1.0 ,other not supported.
- (int) setCameraConfig: | (NSString *) | config |
set camera config.
- (int) setCameraConfig: | (NSString *) | config |
set camera config.
- (int) setDeviceFeatures: | (NSString *) | features |
Description set the features for device. json format: { "DecPostProcess": { "video": [{ "restype": "4", "oldres": "944*1080", "newres": "1920*1080" }, { "restype": "2", "oldres": "944*1080", "newres": "1920*1080" }] "mirror:0 // 水平方向mirror "rotation" : 2 // 视频旋转角度 参见ThingRotateMode定义 "message": "1920*1080" } }
- (int) setDeviceFeatures: | (NSString *) | features |
Description set the features for device. json format: { "DecPostProcess": { "video": [{ "restype": "4", "oldres": "944*1080", "newres": "1920*1080" }, { "restype": "2", "oldres": "944*1080", "newres": "1920*1080" }] "mirror:0 // 水平方向mirror "rotation" : 2 // 视频旋转角度 参见ThingRotateMode定义 "message": "1920*1080" } }
- (int) setEncryptionInfo: | (NSString *) | jsonEncryption |
set Encryption info for playback . set the encryption infro. jsonEncryption format: { "deviceId":"xxxxxx", "encryptInfos":[ { "uuid":"xxxx1", "encrypt":“xxxxxxx” }, { "uuid":"xxxx2", "encrypt":“xxxxxxx” } ] }
- (int) setEncryptionInfo: | (NSString *) | jsonEncryption |
set Encryption info for playback . set the encryption infro. jsonEncryption format: { "deviceId":"xxxxxx", "encryptInfos":[ { "uuid":"xxxx1", "encrypt":“xxxxxxx” }, { "uuid":"xxxx2", "encrypt":“xxxxxxx” } ] }
- (int) setMute: | (BOOL) | muted |
Description Set current mute state.
muted | YES: mute, No: not mute. |
- (int) setMute: | (BOOL) | muted |
Description Set current mute state.
muted | YES: mute, No: not mute. |
- (int) setPlayBackSpeedWithSpeed: | (ThingPlayBackSpeedMode) | speed | |
onResponse: | (void(^)(const char *msg, int errCode)) | onResponse | |
Description set the play speed for sd card playback
speed | the play speed. |
onResponse | Async result callback. errCode see ThingErrCode. |
- (int) setPlayBackSpeedWithSpeed: | (ThingPlayBackSpeedMode) | speed | |
onResponse: | (void(^)(const char *msg, int errCode)) | onResponse | |
Description set the play speed for sd card playback
speed | the play speed. |
onResponse | Async result callback. errCode see ThingErrCode. |
- (int) setPlayCloudDataSpeedWithSpeed: | (ThingPlayBackSpeedMode) | speed |
Description set the play speed for cloud data
speed | the play speed. |
- (int) setPlayCloudDataSpeedWithSpeed: | (ThingPlayBackSpeedMode) | speed |
Description set the play speed for cloud data
speed | the play speed. |
- (int) setRemoteOnline |
- (int) setRemoteOnline |
- (int) setSmartRectFeatures: | (NSString *) | features |
Description set the features for draw smart rect. json format: { "SmartRectFeature": { "rgb": 0xFC4747 // RGB值 "shape: 0 // 矩形框形状 "brushWidth": 0 // 画笔宽度 "flashFps": { // 闪动频率,画几帧,停几帧 "drawKeepFrames" : 0 "stopKeepFrames" : 0 } } }
- (int) setSmartRectFeatures: | (NSString *) | features |
Description set the features for draw smart rect. json format: { "SmartRectFeature": { "rgb": 0xFC4747 // RGB值 "shape: 0 // 矩形框形状 "brushWidth": 0 // 画笔宽度 "flashFps": { // 闪动频率,画几帧,停几帧 "drawKeepFrames" : 0 "stopKeepFrames" : 0 } } }
- (int) setVideoClarity: | (int) | clarityMode | |
onResponse: | (void(^)(const char *msg, int errCode)) | onResponse | |
Description Set video clarity to device.
clarityMode | See TRANSFER_VIDEO_CLARITY_TYPE_E. |
onResponse | Async result callback. errCode see ThingErrCode. |
- (int) setVideoClarity: | (int) | clarityMode | |
onResponse: | (void(^)(const char *msg, int errCode)) | onResponse | |
Description Set video clarity to device.
clarityMode | See TRANSFER_VIDEO_CLARITY_TYPE_E. |
onResponse | Async result callback. errCode see ThingErrCode. |
- (int) setVideoSplitInfo: | (NSString *) | json |
set sub video split info.
json | { "total_split_num":2, "split_info":[{"type":1,"res_pos":[[0,0,1280,720],[0,0,1920,1080]]}, {"type":2,"res_pos":[[0,720,1280,720],[0,1080,1920,1080]]}] } |
- (int) setVideoSplitInfo: | (NSString *) | json |
set sub video split info.
json | { "total_split_num":2, "split_info":[{"type":1,"res_pos":[[0,0,1280,720],[0,0,1920,1080]]}, {"type":2,"res_pos":[[0,720,1280,720],[0,1080,1920,1080]]}] } |
- (int) snapShotWithFileName: | (NSString *) | absoluteFileName | |
rotate: | (ThingRotateMode) | rotate | |
- (int) snapShotWithFileName: | (NSString *) | absoluteFileName | |
rotate: | (ThingRotateMode) | rotate | |
- (int) snapShotWithFileName: | (NSString *) | absoluteFileName | |
rotate: | (ThingRotateMode) | rotate | |
type: | (int) | type | |
index: | (int) | index | |
- (int) snapShotWithFileName: | (NSString *) | absoluteFileName | |
rotate: | (ThingRotateMode) | rotate | |
type: | (int) | type | |
index: | (int) | index | |
- (int) startAudioRecordWithSampleRate: | (int) | sampleRate | |
channel: | (int) | channel | |
- (int) startAudioRecordWithSampleRate: | (int) | sampleRate | |
channel: | (int) | channel | |
- (int) startAudioTalk: | (void(^)(const char *msg, int errCode)) | onResponse |
Description Startup voice talk.
onResponse | Async result callback. errCode see ThingErrCode. |
- (int) startAudioTalk: | (void(^)(const char *msg, int errCode)) | onResponse |
Description Startup voice talk.
onResponse | Async result callback. errCode see ThingErrCode. |
- (int) startCloudDataDownloadWithStartTime: | (int) | startTime | |
stopTime: | (int) | stopTime | |
folderPath: | (NSString *) | folderPath | |
fileName: | (NSString *) | mp4FileName | |
authParams: | (NSString *) | jsonAuthParams | |
encryptKey: | (NSString *) | encryptKey | |
onResponse: | (void(^)(const char *msg, int errCode)) | onResponse | |
onnProgress: | (void(^)(int errCode, int nPos)) | progressCallBack | |
onFinish: | (void(^)(const char *msg, int errCode)) | finishedCallBack | |
- (int) startCloudDataDownloadWithStartTime: | (int) | startTime | |
stopTime: | (int) | stopTime | |
folderPath: | (NSString *) | folderPath | |
fileName: | (NSString *) | mp4FileName | |
authParams: | (NSString *) | jsonAuthParams | |
encryptKey: | (NSString *) | encryptKey | |
onResponse: | (void(^)(const char *msg, int errCode)) | onResponse | |
onnProgress: | (void(^)(int errCode, int nPos)) | progressCallBack | |
onFinish: | (void(^)(const char *msg, int errCode)) | finishedCallBack | |
- (int) startCloudDataDownloadWithStartTime: | (int) | startTime | |
stopTime: | (int) | stopTime | |
folderPath: | (NSString *) | folderPath | |
fileName: | (NSString *) | mp4FileName | |
authParams: | (NSString *) | jsonAuthParams | |
encryptKey: | (NSString *) | encryptKey | |
rotate: | (ThingRotateMode) | rotate | |
onResponse: | (void(^)(const char *msg, int errCode)) | onResponse | |
onnProgress: | (void(^)(int errCode, int nPos)) | progressCallBack | |
onFinish: | (void(^)(const char *msg, int errCode)) | finishedCallBack | |
- (int) startCloudDataDownloadWithStartTime: | (int) | startTime | |
stopTime: | (int) | stopTime | |
folderPath: | (NSString *) | folderPath | |
fileName: | (NSString *) | mp4FileName | |
authParams: | (NSString *) | jsonAuthParams | |
encryptKey: | (NSString *) | encryptKey | |
rotate: | (ThingRotateMode) | rotate | |
onResponse: | (void(^)(const char *msg, int errCode)) | onResponse | |
onnProgress: | (void(^)(int errCode, int nPos)) | progressCallBack | |
onFinish: | (void(^)(const char *msg, int errCode)) | finishedCallBack | |
- (int) startConvertIFrameToImageForVideoMessageWithUrl: | (NSString *) | url | |
encryptKey: | (NSString *) | encryptKey | |
folderPath: | (NSString *) | folderPath | |
onFinish: | (void(^)(const char *result, int errCode)) | onFinish | |
- (int) startConvertIFrameToImageForVideoMessageWithUrl: | (NSString *) | url | |
encryptKey: | (NSString *) | encryptKey | |
folderPath: | (NSString *) | folderPath | |
onFinish: | (void(^)(const char *result, int errCode)) | onFinish | |
- (int) startDownloadAlbumFileWithAlbumName: | (NSString *) | albumName | |
folder: | (NSString *) | folder | |
jsonfiles: | (NSString *) | jsonfiles | |
thumbnail: | (Boolean) | thumbnail | |
onResponse: | (void(^)(const char *msg, int errCode)) | onResponse | |
onAllProgress: | (void(^)(int progress, int errCode)) | onAllProgressCallBack | |
onSingleFileProgress: | (void(^)(const char *filename, int progress, int errCode)) | onSingleFileProgress | |
onFileDownloadFinish: | (void(^)(const char *filename, int index, int errCode)) | finishedCallBack | |
- (int) startDownloadAlbumFileWithAlbumName: | (NSString *) | albumName | |
folder: | (NSString *) | folder | |
jsonfiles: | (NSString *) | jsonfiles | |
thumbnail: | (Boolean) | thumbnail | |
onResponse: | (void(^)(const char *msg, int errCode)) | onResponse | |
onAllProgress: | (void(^)(int progress, int errCode)) | onAllProgressCallBack | |
onSingleFileProgress: | (void(^)(const char *filename, int progress, int errCode)) | onSingleFileProgress | |
onFileDownloadFinish: | (void(^)(const char *filename, int index, int errCode)) | finishedCallBack | |
- (int) startPlayAudioMessageWithUrl: | (NSString *) | url | |
startTime: | (int) | startTime | |
encryptKey: | (NSString *) | encryptKey | |
onResponse: | (void(^)(const char *msg, int errCode)) | onResponse | |
onFinish: | (void(^)(const char *msg, int errCode)) | onFinished | |
- (int) startPlayAudioMessageWithUrl: | (NSString *) | url | |
startTime: | (int) | startTime | |
encryptKey: | (NSString *) | encryptKey | |
onResponse: | (void(^)(const char *msg, int errCode)) | onResponse | |
onFinish: | (void(^)(const char *msg, int errCode)) | onFinished | |
- (int) startPlayBackDownloadV2WithStartTime: | (int) | startTime | |
stopTime: | (int) | stopTime | |
FolderPath: | (NSString *) | folderPath | |
fileName: | (NSString *) | mp4FileName | |
rotate: | (ThingRotateMode) | rotate | |
onResponse: | (void(^)(const char *msg, int errCode)) | callback | |
onProgress: | (void(^)(int nPos, int errCode)) | progressCallBack | |
onFinish: | (void(^)(const char *msg, int errCode)) | onFinish | |
Description Startup sd card playback download. u can down load mutli fragment every time. local data encrypt supported
startTime | Alarm fragment start timestamp(unix). |
stopTime | Alarm fragment end timestamp(unix). |
callback | Async result callback. errCode see ThingErrCode.. |
- (int) startPlayBackDownloadV2WithStartTime: | (int) | startTime | |
stopTime: | (int) | stopTime | |
FolderPath: | (NSString *) | folderPath | |
fileName: | (NSString *) | mp4FileName | |
rotate: | (ThingRotateMode) | rotate | |
onResponse: | (void(^)(const char *msg, int errCode)) | callback | |
onProgress: | (void(^)(int nPos, int errCode)) | progressCallBack | |
onFinish: | (void(^)(const char *msg, int errCode)) | onFinish | |
Description Startup sd card playback download. u can down load mutli fragment every time. local data encrypt supported
startTime | Alarm fragment start timestamp(unix). |
stopTime | Alarm fragment end timestamp(unix). |
callback | Async result callback. errCode see ThingErrCode.. |
- (int) startPlayBackDownloadWithStartTime: | (int) | startTime | |
stopTime: | (int) | stopTime | |
FolderPath: | (NSString *) | folderPath | |
fileName: | (NSString *) | mp4FileName | |
rotate: | (ThingRotateMode) | rotate | |
onResponse: | (void(^)(const char *msg, int errCode)) | callback | |
onProgress: | (void(^)(int nPos, int errCode)) | progressCallBack | |
onFinish: | (void(^)(const char *msg, int errCode)) | onFinish | |
Description Startup sd card playback download. u can down load mutli fragment every time.
startTime | Alarm fragment start timestamp(unix). |
stopTime | Alarm fragment end timestamp(unix). |
callback | Async result callback. errCode see ThingErrCode.. |
- (int) startPlayBackDownloadWithStartTime: | (int) | startTime | |
stopTime: | (int) | stopTime | |
FolderPath: | (NSString *) | folderPath | |
fileName: | (NSString *) | mp4FileName | |
rotate: | (ThingRotateMode) | rotate | |
onResponse: | (void(^)(const char *msg, int errCode)) | callback | |
onProgress: | (void(^)(int nPos, int errCode)) | progressCallBack | |
onFinish: | (void(^)(const char *msg, int errCode)) | onFinish | |
Description Startup sd card playback download. u can down load mutli fragment every time.
startTime | Alarm fragment start timestamp(unix). |
stopTime | Alarm fragment end timestamp(unix). |
callback | Async result callback. errCode see ThingErrCode.. |
- (int) startPlayBackV2WithStartTime: | (int) | startTime | |
stopTime: | (int) | stopTime | |
playTime: | (int) | playTime | |
onResponse: | (void(^)(const char *msg, int errCode)) | onResponse | |
onFinish: | (void(^)(int startTime, int stopTime, int errCode)) | onFinish | |
Description Startup sd card playback. local data encrypt supported
startTime | Alarm fragment start timestamp(unix). |
stopTime | Alarm fragment end timestamp(unix). |
playTime | From which time point(unix). |
onResponse | Async result callback. errCode see ThingErrCode. |
- (int) startPlayBackV2WithStartTime: | (int) | startTime | |
stopTime: | (int) | stopTime | |
playTime: | (int) | playTime | |
onResponse: | (void(^)(const char *msg, int errCode)) | onResponse | |
onFinish: | (void(^)(int startTime, int stopTime, int errCode)) | onFinish | |
Description Startup sd card playback. local data encrypt supported
startTime | Alarm fragment start timestamp(unix). |
stopTime | Alarm fragment end timestamp(unix). |
playTime | From which time point(unix). |
onResponse | Async result callback. errCode see ThingErrCode. |
- (int) startPlayBackWithPlayTime: | (int) | playTime | |
mode: | (int) | mode | |
jsonFragments: | (NSString *) | jsonFragments | |
onResponse: | (void(^)(const char *msg, int errCode)) | onResponse | |
onFinish: | (void(^)(int startTime, int stopTime, int errCode)) | onFinish | |
Description Startup sd card playback.
playTime | From which time point(unix). @mode play all or fragments defined by jsonFragments 0 – play all fragment. (supported only) @jsonFragments the fragments need to play. jsonfragments 说明 { "fragments": [ { “start":xxx // 片段开始时间 “end”:xxx // 片段结束时间 }, { “start":xxx // 片段开始时间 “end”:xxx // 片段结束时间 }, { “start":xxx // 片段开始时间 “end”:xxx // 片段结束时间 }] } |
onResponse | Async result callback. errCode see ThingErrCode. |
- (int) startPlayBackWithPlayTime: | (int) | playTime | |
mode: | (int) | mode | |
jsonFragments: | (NSString *) | jsonFragments | |
onResponse: | (void(^)(const char *msg, int errCode)) | onResponse | |
onFinish: | (void(^)(int startTime, int stopTime, int errCode)) | onFinish | |
Description Startup sd card playback.
playTime | From which time point(unix). @mode play all or fragments defined by jsonFragments 0 – play all fragment. (supported only) @jsonFragments the fragments need to play. jsonfragments 说明 { "fragments": [ { “start":xxx // 片段开始时间 “end”:xxx // 片段结束时间 }, { “start":xxx // 片段开始时间 “end”:xxx // 片段结束时间 }, { “start":xxx // 片段开始时间 “end”:xxx // 片段结束时间 }] } |
onResponse | Async result callback. errCode see ThingErrCode. |
- (int) startPlayBackWithStartTime: | (int) | startTime | |
stopTime: | (int) | stopTime | |
playTime: | (int) | playTime | |
onResponse: | (void(^)(const char *msg, int errCode)) | onResponse | |
onFinish: | (void(^)(int startTime, int stopTime, int errCode)) | onFinish | |
Description Startup sd card playback.
startTime | Alarm fragment start timestamp(unix). |
stopTime | Alarm fragment end timestamp(unix). |
playTime | From which time point(unix). |
onResponse | Async result callback. errCode see ThingErrCode. |
- (int) startPlayBackWithStartTime: | (int) | startTime | |
stopTime: | (int) | stopTime | |
playTime: | (int) | playTime | |
onResponse: | (void(^)(const char *msg, int errCode)) | onResponse | |
onFinish: | (void(^)(int startTime, int stopTime, int errCode)) | onFinish | |
Description Startup sd card playback.
startTime | Alarm fragment start timestamp(unix). |
stopTime | Alarm fragment end timestamp(unix). |
playTime | From which time point(unix). |
onResponse | Async result callback. errCode see ThingErrCode. |
- (int) startPreviewWithClarityMode: | (ThingVideoClarityMode) | mode | |
onResponse: | (void(^)(const char *msg, int errCode)) | onResponse | |
Description Startup preview.
onResponse | Async result callback. errCode see ThingErrCode. |
- (int) startPreviewWithClarityMode: | (ThingVideoClarityMode) | mode | |
onResponse: | (void(^)(const char *msg, int errCode)) | onResponse | |
Description Startup preview.
onResponse | Async result callback. errCode see ThingErrCode. |
- (int) startRecordWithFolderPath: | (NSString *) | folderPath | |
fileName: | (NSString *) | fileName | |
Description Startup mp4 record.
folderPath | Directory path to storage mp4 file(Not include last "/"). |
fileName | Mp4 File name like "xxxx.mp4" |
- (int) startRecordWithFolderPath: | (NSString *) | folderPath | |
fileName: | (NSString *) | fileName | |
Description Startup mp4 record.
folderPath | Directory path to storage mp4 file(Not include last "/"). |
fileName | Mp4 File name like "xxxx.mp4" |
- (int) startRecordWithFolderPath: | (NSString *) | folderPath | |
fileName: | (NSString *) | fileName | |
rotate: | (ThingRotateMode) | rotate | |
Description Startup mp4 record.
folderPath | Directory path to storage mp4 file(Not include last "/"). |
fileName | Mp4 File name like "xxxx.mp4" |
rotate | the angle for video rotate while recording mp4. anti-clockwise |
- (int) startRecordWithFolderPath: | (NSString *) | folderPath | |
fileName: | (NSString *) | fileName | |
rotate: | (ThingRotateMode) | rotate | |
Description Startup mp4 record.
folderPath | Directory path to storage mp4 file(Not include last "/"). |
fileName | Mp4 File name like "xxxx.mp4" |
rotate | the angle for video rotate while recording mp4. anti-clockwise |
- (int) startRecordWithFolderPath: | (NSString *) | folderPath | |
fileName: | (NSString *) | fileName | |
rotate: | (ThingRotateMode) | rotate | |
type: | (int) | type | |
index: | (int) | index | |
Description Startup mp4 record.
folderPath | Directory path to storage mp4 file(Not include last "/"). |
fileName | Mp4 File name like "xxxx.mp4" |
rotate | the angle for video rotate while recording mp4. anti-clockwise |
type | // sub video index // -1 – full // 1 // 2 |
- (int) startRecordWithFolderPath: | (NSString *) | folderPath | |
fileName: | (NSString *) | fileName | |
rotate: | (ThingRotateMode) | rotate | |
type: | (int) | type | |
index: | (int) | index | |
Description Startup mp4 record.
folderPath | Directory path to storage mp4 file(Not include last "/"). |
fileName | Mp4 File name like "xxxx.mp4" |
rotate | the angle for video rotate while recording mp4. anti-clockwise |
type | // sub video index // -1 – full // 1 // 2 |
- (int) startSendVideoTalkDataWithRequestId: | (int) | requestId |
start encode and send video data to devices.
- (int) startSendVideoTalkDataWithRequestId: | (int) | requestId |
start encode and send video data to devices.
- (int) startVideoCaptureWithWidth: | (int) | width | |
height: | (int) | height | |
frameRate: | (int) | frameRate | |
open video capture width : video width height : video height frameRate : 15 – 30 ( 20 default) requestId : the return value of func startVideoTalk
- (int) startVideoCaptureWithWidth: | (int) | width | |
height: | (int) | height | |
frameRate: | (int) | frameRate | |
open video capture width : video width height : video height frameRate : 15 – 30 ( 20 default) requestId : the return value of func startVideoTalk
- (int) startVideoMessageDownloadWithUrl: | (NSString *) | url | |
encryptKey: | (NSString *) | encryptKey | |
folderPath: | (NSString *) | folderPath | |
fileName: | (NSString *) | mp4FileName | |
onResponse: | (void(^)(const char *msg, int errCode)) | onResponse | |
onProgress: | (void(^)(int errCode, int nPos)) | onProgress | |
onFinish: | (void(^)(const char *msg, int errCode)) | onFinish | |
- (int) startVideoMessageDownloadWithUrl: | (NSString *) | url | |
encryptKey: | (NSString *) | encryptKey | |
folderPath: | (NSString *) | folderPath | |
fileName: | (NSString *) | mp4FileName | |
onResponse: | (void(^)(const char *msg, int errCode)) | onResponse | |
onProgress: | (void(^)(int errCode, int nPos)) | onProgress | |
onFinish: | (void(^)(const char *msg, int errCode)) | onFinish | |
- (int) startVideoMessageDownloadWithUrl: | (NSString *) | url | |
encryptKey: | (NSString *) | encryptKey | |
folderPath: | (NSString *) | folderPath | |
fileName: | (NSString *) | mp4FileName | |
rotate: | (ThingRotateMode) | rotate | |
onResponse: | (void(^)(const char *msg, int errCode)) | onResponse | |
onProgress: | (void(^)(int errCode, int nPos)) | onProgress | |
onFinish: | (void(^)(const char *msg, int errCode)) | onFinish | |
- (int) startVideoMessageDownloadWithUrl: | (NSString *) | url | |
encryptKey: | (NSString *) | encryptKey | |
folderPath: | (NSString *) | folderPath | |
fileName: | (NSString *) | mp4FileName | |
rotate: | (ThingRotateMode) | rotate | |
onResponse: | (void(^)(const char *msg, int errCode)) | onResponse | |
onProgress: | (void(^)(int errCode, int nPos)) | onProgress | |
onFinish: | (void(^)(const char *msg, int errCode)) | onFinish | |
- (int) startVideoTalk: | (void(^)(const char *msg, int errCode)) | onResponse |
usage: 1.startVideoTalk 2.startVideoCapture ...
- (int) startVideoTalk: | (void(^)(const char *msg, int errCode)) | onResponse |
usage: 1.startVideoTalk 2.startVideoCapture ...
- (int) stopAudioRecord |
Description stop audio record.
- (int) stopAudioRecord |
Description stop audio record.
- (int) stopAudioTalk |
Description Stop audio talk.
- (int) stopAudioTalk |
Description Stop audio talk.
- (int) stopPlayAudioMessage |
- (int) stopPlayAudioMessage |
- (int) stopPlayBackDownloadWithResponse: | (void(^)(const char *msg, int errCode)) | onResponse |
Description Stop current sd card playback.
onResponse | Async result callback. errCode see ThingErrCode. |
- (int) stopPlayBackDownloadWithResponse: | (void(^)(const char *msg, int errCode)) | onResponse |
Description Stop current sd card playback.
onResponse | Async result callback. errCode see ThingErrCode. |
- (int) stopPlayBackWithResponse: | (void(^)(const char *msg, int errCode)) | onResponse |
Description Stop current sd card playback.
onResponse | Async result callback. errCode see ThingErrCode. |
- (int) stopPlayBackWithResponse: | (void(^)(const char *msg, int errCode)) | onResponse |
Description Stop current sd card playback.
onResponse | Async result callback. errCode see ThingErrCode. |
- (int) stopPlayCloudData |
Description Stop to play current cloud data.
- (int) stopPlayCloudData |
Description Stop to play current cloud data.
- (int) stopPlayVideoMessage |
- (int) stopPlayVideoMessage |
- (int) stopPreview: | (void(^)(const char *, int errCode)) | onResponse |
Description Startup preview.
onResponse | Async result callback. errCode see ThingErrCode. |
- (int) stopPreview: | (void(^)(const char *, int errCode)) | onResponse |
Description Startup preview.
onResponse | Async result callback. errCode see ThingErrCode. |
- (int) stopRecord |
Description Stop mp4 recording.
- (int) stopRecord |
Description Stop mp4 recording.
- (int) stopRecordWithType: | (int) | type | |
index: | (int) | index | |
Description Stop mp4 recording.
index | // sub video index // -1 – full // 1 // 2 |
- (int) stopRecordWithType: | (int) | type | |
index: | (int) | index | |
Description Stop mp4 recording.
index | // sub video index // -1 – full // 1 // 2 |
- (int) stopSendVideoTalkData |
stop encode ,stop send video data.
- (int) stopSendVideoTalkData |
stop encode ,stop send video data.
- (int) stopVideoCapture |
close the video capture.
- (int) stopVideoCapture |
close the video capture.
- (int) stopVideoTalk |
stop video talk
- (int) stopVideoTalk |
stop video talk
- (int) switchCamera |
switch camera
- (int) switchCamera |
switch camera
- (int) switchChannelWithChannel: | (int) | channel | |
onResponse: | (void(^)(const char *msg, int errCode)) | callback | |
- (int) switchChannelWithChannel: | (int) | channel | |
onResponse: | (void(^)(const char *msg, int errCode)) | callback | |
|
readwritenonatomicweak |
Definition at line 17 of file ThingCamera.h.
|
readwritenonatomiccopy |
Definition at line 16 of file ThingCamera.h.