Tuya iOS Smart Life App SDK 5.15.0
ThingSmartCloudManager Class Reference

#import <ThingSmartCloudManager.h>

Inheritance diagram for ThingSmartCloudManager:

Instance Methods

(instancetype) - initWithDeviceId:
 
(int) - configCloudDataTags:
 
(NSString *) - configCloudDataTagsV2:
 
(void) - fetchCloudStorageStateCompletion:
 
(void) - loadCloudData:
 
(void) - reLoadCloudDays:
 
(void) - enableAIDetect:success:failure:
 
(void) - queryAIDetectConfigSuccess:failure:
 
(void) - enableAIDetectEventType:enable:success:failure:
 
(void) - timeEventsWithCloudDay:offset:limit:aiCodes:success:failure:
 
(void) - timeEventsWithCloudDay:offset:limit:success:failure:
 
(NSArray *) - getCloudUrlsWithStartTime:endTime:isEvent:
 
(NSArray *) - getCloudUrlsWithStartTime:endTime:isEvent:failure:
 
(void) - timeLineWithCloudDay:success:failure:
 
(int) - playCloudVideoWithStartTime:endTime:isEvent:onResponse:onFinished:
 
(int) - pausePlayCloudVideo
 
(int) - resumePlayCloudVideo
 
(int) - stopPlayCloudVideo
 
(UIView< ThingSmartVideoViewType > *) - videoView
 
(int) - enableMute:success:failure:
 
(BOOL) - isMuted
 
(int) - startRecord
 
(int) - startRecordAtPath:
 
(int) - stopRecord
 
(UIImage *) - snapShoot
 
(UIImage *) - snapShootAtPath:thumbnilPath:
 
(void) - destroy
 
(int) - downloadCloudVideoWithRange:filePath:success:progress:failure:
 
(int) - pauseDownloadCloudVideo
 
(int) - resumeDownloadCloudVideo:
 
(int) - cancelDownloadCloudVideo
 
(void) - deleteCloudVideoWithRange:success:failure:
 
(void) - deleteCloudVideoWithDevId:timeRange:extParams:success:failure:
 
(void) - deleteAllDayCloudVideoWithRange:success:failure:
 
(void) - deleteAllDayCloudVideoWithDevId:timeRange:extParams:success:failure:
 
(int) - setCloudVideoPlaySpeed:
 
(int) - setVideoDirection:horizontalMirror:
 Set the video rotation. More...
 
(int) - setVideoDirection:mirror:
 Set the video rotation and mirror. More...
 
(int) - playVideoMessageWithUrl:startTime:encryptKey:onResponse:onFinish:
 
("Use -[ThingSmartCameraMessageMediaPlayer pausePlay:] instead") - __deprecated_msg
 
("Use -[ThingSmartCameraMessageMediaPlayer resumePlay:] instead") - __deprecated_msg
 
("Use -[ThingSmartCameraMessageMediaPlayer stopPlay:] instead") - __deprecated_msg
 
(int) - playAudioMessageWithUrl:startTime:encryptKey:onResponse:onFinish:
 
("Use -[ThingSmartCameraMessageMediaPlayer pausePlay:] instead") - __deprecated_msg
 
("Use -[ThingSmartCameraMessageMediaPlayer resumePlay:] instead") - __deprecated_msg
 
("Use -[ThingSmartCameraMessageMediaPlayer stopPlay:] instead") - __deprecated_msg
 
(instancetype) - initWithDeviceId:
 
(int) - configCloudDataTags:
 
(NSString *) - configCloudDataTagsV2:
 
(void) - fetchCloudStorageStateCompletion:
 
(void) - loadCloudData:
 
(void) - reLoadCloudDays:
 
(void) - enableAIDetect:success:failure:
 
(void) - queryAIDetectConfigSuccess:failure:
 
(void) - enableAIDetectEventType:enable:success:failure:
 
(void) - timeEventsWithCloudDay:offset:limit:aiCodes:success:failure:
 
(void) - timeEventsWithCloudDay:offset:limit:success:failure:
 
(NSArray *) - getCloudUrlsWithStartTime:endTime:isEvent:
 
(NSArray *) - getCloudUrlsWithStartTime:endTime:isEvent:failure:
 
(void) - timeLineWithCloudDay:success:failure:
 
(int) - playCloudVideoWithStartTime:endTime:isEvent:onResponse:onFinished:
 
(int) - pausePlayCloudVideo
 
(int) - resumePlayCloudVideo
 
(int) - stopPlayCloudVideo
 
(UIView< ThingSmartVideoViewType > *) - videoView
 
(int) - enableMute:success:failure:
 
(BOOL) - isMuted
 
(int) - startRecord
 
(int) - startRecordAtPath:
 
(int) - stopRecord
 
(UIImage *) - snapShoot
 
(UIImage *) - snapShootAtPath:thumbnilPath:
 
(void) - destroy
 
(int) - downloadCloudVideoWithRange:filePath:success:progress:failure:
 
(int) - pauseDownloadCloudVideo
 
(int) - resumeDownloadCloudVideo:
 
(int) - cancelDownloadCloudVideo
 
(void) - deleteCloudVideoWithRange:success:failure:
 
(void) - deleteCloudVideoWithDevId:timeRange:extParams:success:failure:
 
(void) - deleteAllDayCloudVideoWithRange:success:failure:
 
(void) - deleteAllDayCloudVideoWithDevId:timeRange:extParams:success:failure:
 
(int) - setCloudVideoPlaySpeed:
 
(int) - setVideoDirection:horizontalMirror:
 Set the video rotation. More...
 
(int) - setVideoDirection:mirror:
 Set the video rotation and mirror. More...
 
(int) - playVideoMessageWithUrl:startTime:encryptKey:onResponse:onFinish:
 
("Use -[ThingSmartCameraMessageMediaPlayer pausePlay:] instead") - __deprecated_msg
 
("Use -[ThingSmartCameraMessageMediaPlayer resumePlay:] instead") - __deprecated_msg
 
("Use -[ThingSmartCameraMessageMediaPlayer stopPlay:] instead") - __deprecated_msg
 
(int) - playAudioMessageWithUrl:startTime:encryptKey:onResponse:onFinish:
 
("Use -[ThingSmartCameraMessageMediaPlayer pausePlay:] instead") - __deprecated_msg
 
("Use -[ThingSmartCameraMessageMediaPlayer resumePlay:] instead") - __deprecated_msg
 
("Use -[ThingSmartCameraMessageMediaPlayer stopPlay:] instead") - __deprecated_msg
 

Class Methods

(BOOL) + isSupportCloudStorage:
 
(void) + fetchSecretKeyWithDevId:completion:
 
(BOOL) + isSupportCloudStorage:
 
(void) + fetchSecretKeyWithDevId:completion:
 

Properties

NSString * devId
 
BOOL autoRender
 
NSArray< ThingSmartCloudDayModel * > * cloudDays
 
id< ThingSmartCloudManagerDelegatedelegate
 
NSString * encryptKey
 
NSString * authJson
 
NSTimeZone * timeZone
 
CGSize videoStretchSize
 
BOOL enableEncryptedImage
 

Detailed Description

Definition at line 44 of file ThingSmartCloudManager.h.

Method Documentation

◆ __deprecated_msg [1/12]

- ("Use -[ThingSmartCameraMessageMediaPlayer) stopPlay:

[^en] stop play audio [$en]

[^zh] 停止播放音频 [$zh]

Returns
error code

◆ __deprecated_msg [2/12]

- ("Use -[ThingSmartCameraMessageMediaPlayer) resumePlay:

[^en] resume play audio [$en]

[^zh] 恢复播放音频 [$zh]

Returns
error code

◆ __deprecated_msg [3/12]

- ("Use -[ThingSmartCameraMessageMediaPlayer) pausePlay:

[^en] pause play audio [$en]

[^zh] 暂停播放音频 [$zh]

Returns
error code

◆ __deprecated_msg [4/12]

- ("Use -[ThingSmartCameraMessageMediaPlayer) stopPlay:

[^en] stop play video [$en]

[^zh] 停止播放视频 [$zh]

Returns
error code

◆ __deprecated_msg [5/12]

- ("Use -[ThingSmartCameraMessageMediaPlayer) resumePlay:

[^en] resume play video [$en]

[^zh] 恢复播放视频 [$zh]

Returns
error code

◆ __deprecated_msg [6/12]

- ("Use -[ThingSmartCameraMessageMediaPlayer) pausePlay:

[^en] pause play video [$en]

[^zh] 暂停播放视频 [$zh]

Returns
error code

◆ __deprecated_msg [7/12]

- ("Use -[ThingSmartCameraMessageMediaPlayer) resumePlay:

[^en] resume play audio [$en]

[^zh] 恢复播放音频 [$zh]

Returns
error code

◆ __deprecated_msg [8/12]

- ("Use -[ThingSmartCameraMessageMediaPlayer) pausePlay:

[^en] pause play audio [$en]

[^zh] 暂停播放音频 [$zh]

Returns
error code

◆ __deprecated_msg [9/12]

- ("Use -[ThingSmartCameraMessageMediaPlayer) stopPlay:

[^en] stop play audio [$en]

[^zh] 停止播放音频 [$zh]

Returns
error code

◆ __deprecated_msg [10/12]

- ("Use -[ThingSmartCameraMessageMediaPlayer) stopPlay:

[^en] stop play video [$en]

[^zh] 停止播放视频 [$zh]

Returns
error code

◆ __deprecated_msg [11/12]

- ("Use -[ThingSmartCameraMessageMediaPlayer) pausePlay:

[^en] pause play video [$en]

[^zh] 暂停播放视频 [$zh]

Returns
error code

◆ __deprecated_msg [12/12]

- ("Use -[ThingSmartCameraMessageMediaPlayer) resumePlay:

[^en] resume play video [$en]

[^zh] 恢复播放视频 [$zh]

Returns
error code

◆ cancelDownloadCloudVideo [1/2]

- (int) cancelDownloadCloudVideo

[^en] cancel cloud video download task [$en] [^zh] 取消云存储视频下载 [$zh]

◆ cancelDownloadCloudVideo [2/2]

- (int) cancelDownloadCloudVideo

[^en] cancel cloud video download task [$en] [^zh] 取消云存储视频下载 [$zh]

◆ configCloudDataTags: [1/2]

- (int) configCloudDataTags: (NSString *)  jsonCloudDataTags

[^en] config cloud data tags. if you want reqeust cloud data for service api by yourself instead of use "loadCloudData:", you shoud call this method before play cloud video. [$en]

[^zh] 配置云端数据标签。如果您想要自己调用api代替使用“loadCloudData”请求云端数据,您应该再播放云端视频之前调用此方法。 [$zh]

Parameters
jsonCloudDataTags[^en]cloud data tags[$en] [^zh]云数据标签[$zh]

◆ configCloudDataTags: [2/2]

- (int) configCloudDataTags: (NSString *)  jsonCloudDataTags

[^en] config cloud data tags. if you want reqeust cloud data for service api by yourself instead of use "loadCloudData:", you shoud call this method before play cloud video. [$en]

[^zh] 配置云端数据标签。如果您想要自己调用api代替使用“loadCloudData”请求云端数据,您应该再播放云端视频之前调用此方法。 [$zh]

Parameters
jsonCloudDataTags[^en]cloud data tags[$en] [^zh]云数据标签[$zh]

◆ configCloudDataTagsV2: [1/2]

- (NSString *) configCloudDataTagsV2: (NSString *)  jsonCloudDataTags

◆ configCloudDataTagsV2: [2/2]

- (NSString *) configCloudDataTagsV2: (NSString *)  jsonCloudDataTags

◆ deleteAllDayCloudVideoWithDevId:timeRange:extParams:success:failure: [1/2]

- (void) deleteAllDayCloudVideoWithDevId: (NSString *)  devId
timeRange: (NSRange)  timeRange
extParams: (NSDictionary *)  extParams
success: (void(^)(void))  success
failure: (void(^)(NSError *error))  failure 

[^en] delete cloud video which during the time range [$en] [^zh] 删除指定设备一个全天时间段里的云存储视频 [$zh]

Parameters
devId[^en] specified device id [$en] [^zh] 指定设备id [$zh]
timeRange[^en] the time range to delete [$en] [^zh] 需要删除的时间段 [$zh]
extParams[^en] ext params [$en] [^zh] 扩展参数 [$zh]
successsuccess callback
failurefailure callback

◆ deleteAllDayCloudVideoWithDevId:timeRange:extParams:success:failure: [2/2]

- (void) deleteAllDayCloudVideoWithDevId: (NSString *)  devId
timeRange: (NSRange)  timeRange
extParams: (NSDictionary *)  extParams
success: (void(^)(void))  success
failure: (void(^)(NSError *error))  failure 

[^en] delete cloud video which during the time range [$en] [^zh] 删除指定设备一个全天时间段里的云存储视频 [$zh]

Parameters
devId[^en] specified device id [$en] [^zh] 指定设备id [$zh]
timeRange[^en] the time range to delete [$en] [^zh] 需要删除的时间段 [$zh]
extParams[^en] ext params [$en] [^zh] 扩展参数 [$zh]
successsuccess callback
failurefailure callback

◆ deleteAllDayCloudVideoWithRange:success:failure: [1/2]

- (void) deleteAllDayCloudVideoWithRange: (NSRange)  timeRange
success: (void(^)(void))  success
failure: (void(^)(NSError *error))  failure 

[^en] delete current device's cloud video which during the time range [$en] [^zh] 删除当前设备一个全天时间段里的云存储视频 [$zh]

Parameters
timeRange[^en] the time range to delete [$en] [^zh] 需要删除的时间段 [$zh]
successsuccess callback
failurefailure callback

◆ deleteAllDayCloudVideoWithRange:success:failure: [2/2]

- (void) deleteAllDayCloudVideoWithRange: (NSRange)  timeRange
success: (void(^)(void))  success
failure: (void(^)(NSError *error))  failure 

[^en] delete current device's cloud video which during the time range [$en] [^zh] 删除当前设备一个全天时间段里的云存储视频 [$zh]

Parameters
timeRange[^en] the time range to delete [$en] [^zh] 需要删除的时间段 [$zh]
successsuccess callback
failurefailure callback

◆ deleteCloudVideoWithDevId:timeRange:extParams:success:failure: [1/2]

- (void) deleteCloudVideoWithDevId: (NSString *)  devId
timeRange: (NSRange)  timeRange
extParams: (NSDictionary *)  extParams
success: (void(^)(void))  success
failure: (void(^)(NSError *error))  failure 

[^en] delete cloud video which during the time range [$en] [^zh] 删除指定设备一个时间段里的云存储视频 [$zh]

Parameters
devId[^en] specified device id [$en] [^zh] 指定设备id [$zh]
timeRange[^en] the time range to delete [$en] [^zh] 需要删除的时间段 [$zh]
extParams[^en] ext params [$en] [^zh] 扩展参数 [$zh]
successsuccess callback
failurefailure callback

◆ deleteCloudVideoWithDevId:timeRange:extParams:success:failure: [2/2]

- (void) deleteCloudVideoWithDevId: (NSString *)  devId
timeRange: (NSRange)  timeRange
extParams: (NSDictionary *)  extParams
success: (void(^)(void))  success
failure: (void(^)(NSError *error))  failure 

[^en] delete cloud video which during the time range [$en] [^zh] 删除指定设备一个时间段里的云存储视频 [$zh]

Parameters
devId[^en] specified device id [$en] [^zh] 指定设备id [$zh]
timeRange[^en] the time range to delete [$en] [^zh] 需要删除的时间段 [$zh]
extParams[^en] ext params [$en] [^zh] 扩展参数 [$zh]
successsuccess callback
failurefailure callback

◆ deleteCloudVideoWithRange:success:failure: [1/2]

- (void) deleteCloudVideoWithRange: (NSRange)  timeRange
success: (void(^)(void))  success
failure: (void(^)(NSError *error))  failure 

[^en] delete current device's cloud video which during the time range [$en] [^zh] 删除当前设备一个时间段里的云存储视频 [$zh]

Parameters
timeRange[^en] the time range to delete [$en] [^zh] 需要删除的时间段 [$zh]
successsuccess callback
failurefailure callback

◆ deleteCloudVideoWithRange:success:failure: [2/2]

- (void) deleteCloudVideoWithRange: (NSRange)  timeRange
success: (void(^)(void))  success
failure: (void(^)(NSError *error))  failure 

[^en] delete current device's cloud video which during the time range [$en] [^zh] 删除当前设备一个时间段里的云存储视频 [$zh]

Parameters
timeRange[^en] the time range to delete [$en] [^zh] 需要删除的时间段 [$zh]
successsuccess callback
failurefailure callback

◆ destroy [1/2]

- (void) destroy

[^en] destory resource [$en]

[^zh] 销毁 资源 [$zh]

◆ destroy [2/2]

- (void) destroy

[^en] destory resource [$en]

[^zh] 销毁 资源 [$zh]

◆ downloadCloudVideoWithRange:filePath:success:progress:failure: [1/2]

- (int) downloadCloudVideoWithRange: (NSRange)  timeRange
filePath: (NSString *)  videoPath
success: (DownloadSuccess success
progress: (DownloadProgress progress
failure: (DownloadFailure failure 

◆ downloadCloudVideoWithRange:filePath:success:progress:failure: [2/2]

- (int) downloadCloudVideoWithRange: (NSRange)  timeRange
filePath: (NSString *)  videoPath
success: (DownloadSuccess success
progress: (DownloadProgress progress
failure: (DownloadFailure failure 

◆ enableAIDetect:success:failure: [1/2]

- (void) enableAIDetect: (BOOL)  enable
success: (void(^)(BOOL result))  success
failure: (void(^)(NSError *error))  failure 

是否开启ai分析能力

  • Parameters:
    • enable: 是否开启ai分析能力
    • success: 成功回调
    • failure: 失败回调

◆ enableAIDetect:success:failure: [2/2]

- (void) enableAIDetect: (BOOL)  enable
success: (void(^)(BOOL result))  success
failure: (void(^)(NSError *error))  failure 

是否开启ai分析能力

  • Parameters:
    • enable: 是否开启ai分析能力
    • success: 成功回调
    • failure: 失败回调

◆ enableAIDetectEventType:enable:success:failure: [1/2]

- (void) enableAIDetectEventType: (NSString *)  type
enable: (BOOL)  enable
success: (void(^)(BOOL result))  success
failure: (void(^)(NSError *error))  failure 

更新ai分析事件类型

  • Parameters:
    • devId: 设备id
    • aiCode: ai侦测类型code
    • enableState: 是否可用0-不可用,1-可用
    • success: 成功回调
    • failure: 失败回调

◆ enableAIDetectEventType:enable:success:failure: [2/2]

- (void) enableAIDetectEventType: (NSString *)  type
enable: (BOOL)  enable
success: (void(^)(BOOL result))  success
failure: (void(^)(NSError *error))  failure 

更新ai分析事件类型

  • Parameters:
    • devId: 设备id
    • aiCode: ai侦测类型code
    • enableState: 是否可用0-不可用,1-可用
    • success: 成功回调
    • failure: 失败回调

◆ enableMute:success:failure: [1/2]

- (int) enableMute: (BOOL)  mute
success: (void(^)(void))  success
failure: (void(^)(NSError *error))  failure 

[^en] set mute. [$en]

[^zh] 设置静音 [$zh]

Parameters
mute[^en]mute sound.[$en] [^zh]是否静音[$zh]
successsuccess call back.
failurefailed call back.

◆ enableMute:success:failure: [2/2]

- (int) enableMute: (BOOL)  mute
success: (void(^)(void))  success
failure: (void(^)(NSError *error))  failure 

[^en] set mute. [$en]

[^zh] 设置静音 [$zh]

Parameters
mute[^en]mute sound.[$en] [^zh]是否静音[$zh]
successsuccess call back.
failurefailed call back.

◆ fetchCloudStorageStateCompletion: [1/2]

- (void) fetchCloudStorageStateCompletion: (void(^)(ThingSmartCloudState state))  completion

[^en] fetch cloud storage service state [$en]

[^zh] 获取云存储服务状态 [$zh]

Parameters
completioncallback

◆ fetchCloudStorageStateCompletion: [2/2]

- (void) fetchCloudStorageStateCompletion: (void(^)(ThingSmartCloudState state))  completion

[^en] fetch cloud storage service state [$en]

[^zh] 获取云存储服务状态 [$zh]

Parameters
completioncallback

◆ fetchSecretKeyWithDevId:completion: [1/2]

+ (void) fetchSecretKeyWithDevId: (NSString *)  devId
completion: (ThingFetchSecretKeyCompletion completion 

fetch secret key

Parameters
devId@completion return secret key or error.

◆ fetchSecretKeyWithDevId:completion: [2/2]

+ (void) fetchSecretKeyWithDevId: (NSString *)  devId
completion: (ThingFetchSecretKeyCompletion completion 

fetch secret key

Parameters
devId@completion return secret key or error.

◆ getCloudUrlsWithStartTime:endTime:isEvent: [1/2]

- (NSArray *) getCloudUrlsWithStartTime: (int)  startTime
endTime: (int)  endTime
isEvent: (bool)  isEvent 

[^en] get cloud urls [$en]

[^zh] 获取云存储url数组 [$zh]

◆ getCloudUrlsWithStartTime:endTime:isEvent: [2/2]

- (NSArray *) getCloudUrlsWithStartTime: (int)  startTime
endTime: (int)  endTime
isEvent: (bool)  isEvent 

[^en] get cloud urls [$en]

[^zh] 获取云存储url数组 [$zh]

◆ getCloudUrlsWithStartTime:endTime:isEvent:failure: [1/2]

- (NSArray *) getCloudUrlsWithStartTime: (int)  startTime
endTime: (int)  endTime
isEvent: (bool)  isEvent
failure: (void(^)(NSError *error))  failure 

[^en] get cloud urls [$en]

[^zh] 获取云存储url数组 [$zh]

◆ getCloudUrlsWithStartTime:endTime:isEvent:failure: [2/2]

- (NSArray *) getCloudUrlsWithStartTime: (int)  startTime
endTime: (int)  endTime
isEvent: (bool)  isEvent
failure: (void(^)(NSError *error))  failure 

[^en] get cloud urls [$en]

[^zh] 获取云存储url数组 [$zh]

◆ initWithDeviceId: [1/2]

- (instancetype) initWithDeviceId: (NSString *)  devId

◆ initWithDeviceId: [2/2]

- (instancetype) initWithDeviceId: (NSString *)  devId

◆ isMuted [1/2]

- (BOOL) isMuted

[^en] get mute state. [$en]

[^zh] 获取静音状态 [$zh]

Returns
BOOL

◆ isMuted [2/2]

- (BOOL) isMuted

[^en] get mute state. [$en]

[^zh] 获取静音状态 [$zh]

Returns
BOOL

◆ isSupportCloudStorage: [1/2]

+ (BOOL) isSupportCloudStorage: (NSString *)  devId

whether to support cloud storage

Parameters
devIdget from DeviceModel. Please obtain the device information first
Returns
CloudStorage is supported.

◆ isSupportCloudStorage: [2/2]

+ (BOOL) isSupportCloudStorage: (NSString *)  devId

whether to support cloud storage

Parameters
devIdget from DeviceModel. Please obtain the device information first
Returns
CloudStorage is supported.

◆ loadCloudData: [1/2]

- (void) loadCloudData: (void(^)(ThingSmartCloudState state))  complete

[^en] load cloud data [$en]

[^zh] 加载云端数据 [$zh]

Parameters
completecallback

◆ loadCloudData: [2/2]

- (void) loadCloudData: (void(^)(ThingSmartCloudState state))  complete

[^en] load cloud data [$en]

[^zh] 加载云端数据 [$zh]

Parameters
completecallback

◆ pauseDownloadCloudVideo [1/2]

- (int) pauseDownloadCloudVideo

[^en] pause cloud video download task [$en] [^zh] 暂停云存储视频下载 [$zh]

◆ pauseDownloadCloudVideo [2/2]

- (int) pauseDownloadCloudVideo

[^en] pause cloud video download task [$en] [^zh] 暂停云存储视频下载 [$zh]

◆ pausePlayCloudVideo [1/2]

- (int) pausePlayCloudVideo

[^en] pause play [$en]

[^zh] 暂停播放 [$zh]

Returns
[^en]errCode 0 is success[$en] [^zh]errCode 0 为成功[$zh]

◆ pausePlayCloudVideo [2/2]

- (int) pausePlayCloudVideo

[^en] pause play [$en]

[^zh] 暂停播放 [$zh]

Returns
[^en]errCode 0 is success[$en] [^zh]errCode 0 为成功[$zh]

◆ playAudioMessageWithUrl:startTime:encryptKey:onResponse:onFinish: [1/2]

- (int) playAudioMessageWithUrl: (NSString *)  url
startTime: (int)  nStartTime
encryptKey: (NSString *)  encryptKey
onResponse: (void(^)(int errCode))  callback
onFinish: ("Use - instead")  __deprecated_msg[ThingSmartCameraMessageMediaPlayer playMessage:attachmentType:success:failure:finished:] 

[^en] play encrypt audio in detect message [$en]

[^zh] 在侦测消息中播放加密音频 [$zh]

Parameters
url[^en]audio path[$en] [^zh]音频路径[$zh]
nStartTime[^en]Start time to play[$en] [^zh]开始播放时间[$zh]
encryptKey[^en]encrypt key[$en] [^zh]加密key[$zh]
callbackstart callback
finihedCallBackfinish callback
Returns
error code

◆ playAudioMessageWithUrl:startTime:encryptKey:onResponse:onFinish: [2/2]

- (int) playAudioMessageWithUrl: (NSString *)  url
startTime: (int)  nStartTime
encryptKey: (NSString *)  encryptKey
onResponse: (void(^)(int errCode))  callback
onFinish: ("Use - instead")  __deprecated_msg[ThingSmartCameraMessageMediaPlayer playMessage:attachmentType:success:failure:finished:] 

[^en] play encrypt audio in detect message [$en]

[^zh] 在侦测消息中播放加密音频 [$zh]

Parameters
url[^en]audio path[$en] [^zh]音频路径[$zh]
nStartTime[^en]Start time to play[$en] [^zh]开始播放时间[$zh]
encryptKey[^en]encrypt key[$en] [^zh]加密key[$zh]
callbackstart callback
finihedCallBackfinish callback
Returns
error code

◆ playCloudVideoWithStartTime:endTime:isEvent:onResponse:onFinished: [1/2]

- (int) playCloudVideoWithStartTime: (long)  startTime
endTime: (long)  endTime
isEvent: (BOOL)  isEvent
onResponse: (void(^)(int errCode))  responseCallback
onFinished: (void(^)(int errCode))  finishedCallback 

[^en] play cloud video [$en]

[^zh] 播放云端视频 [$zh]

Parameters
startTime[^en]start time[$en] [^zh]开始时间[$zh]
endTime[^en]end time. cloud video will auto continue util the last video finished in the day[$en] [^zh]结束时间,云视频将会自动继续播放直到当天最后一个视频[$zh]
isEvent[^en]YES is the time event, NO is the time line video.[$en] [^zh]YES 是时间片事件,NO是时间轴视频[$zh]
responseCallback[^en]errCode 0 is success, negative is failed.[$en] [^zh]errorCode 0 是成功,负数为失败[$zh]
finishedCallback[^en]video is finished[$en] [^zh]视频已经结束[$zh]

◆ playCloudVideoWithStartTime:endTime:isEvent:onResponse:onFinished: [2/2]

- (int) playCloudVideoWithStartTime: (long)  startTime
endTime: (long)  endTime
isEvent: (BOOL)  isEvent
onResponse: (void(^)(int errCode))  responseCallback
onFinished: (void(^)(int errCode))  finishedCallback 

[^en] play cloud video [$en]

[^zh] 播放云端视频 [$zh]

Parameters
startTime[^en]start time[$en] [^zh]开始时间[$zh]
endTime[^en]end time. cloud video will auto continue util the last video finished in the day[$en] [^zh]结束时间,云视频将会自动继续播放直到当天最后一个视频[$zh]
isEvent[^en]YES is the time event, NO is the time line video.[$en] [^zh]YES 是时间片事件,NO是时间轴视频[$zh]
responseCallback[^en]errCode 0 is success, negative is failed.[$en] [^zh]errorCode 0 是成功,负数为失败[$zh]
finishedCallback[^en]video is finished[$en] [^zh]视频已经结束[$zh]

◆ playVideoMessageWithUrl:startTime:encryptKey:onResponse:onFinish: [1/2]

- (int) playVideoMessageWithUrl: (NSString *)  url
startTime: (int)  nStartTime
encryptKey: (NSString *)  encryptKey
onResponse: (void(^)(int errCode))  callback
onFinish: ("Use - instead")  __deprecated_msg[ThingSmartCameraMessageMediaPlayer playMessage:attachmentType:success:failure:finished:] 

[^en] play encrypt video in detect message [$en]

[^zh] 在侦测消息追踪播放加密视频 [$zh]

Parameters
url[^en]video path[$en] [^zh]视频路径[$zh]
nStartTime[^en]Start time to play[$en] [^zh]开始播放的时间[$zh]
encryptKey[^en]encrypt key[$en] [^zh]加密key[$zh]
callbackstart callback
finihedCallBackfinish callback
Returns
error code

◆ playVideoMessageWithUrl:startTime:encryptKey:onResponse:onFinish: [2/2]

- (int) playVideoMessageWithUrl: (NSString *)  url
startTime: (int)  nStartTime
encryptKey: (NSString *)  encryptKey
onResponse: (void(^)(int errCode))  callback
onFinish: ("Use - instead")  __deprecated_msg[ThingSmartCameraMessageMediaPlayer playMessage:attachmentType:success:failure:finished:] 

[^en] play encrypt video in detect message [$en]

[^zh] 在侦测消息追踪播放加密视频 [$zh]

Parameters
url[^en]video path[$en] [^zh]视频路径[$zh]
nStartTime[^en]Start time to play[$en] [^zh]开始播放的时间[$zh]
encryptKey[^en]encrypt key[$en] [^zh]加密key[$zh]
callbackstart callback
finihedCallBackfinish callback
Returns
error code

◆ queryAIDetectConfigSuccess:failure: [1/2]

- (void) queryAIDetectConfigSuccess: (void(^)(ThingCameraAIDetectConfigModel *model))  success
failure: (void(^)(NSError *error))  failure 

查下设备ai配置信息

  • Parameters:
    • success: 成功回调
    • failure: 失败回调

◆ queryAIDetectConfigSuccess:failure: [2/2]

- (void) queryAIDetectConfigSuccess: (void(^)(ThingCameraAIDetectConfigModel *model))  success
failure: (void(^)(NSError *error))  failure 

查下设备ai配置信息

  • Parameters:
    • success: 成功回调
    • failure: 失败回调

◆ reLoadCloudDays: [1/2]

- (void) reLoadCloudDays: (void(^)(NSArray< ThingSmartCloudDayModel * > *cloudDays))  complete

[^en] reload cloud days [$en]

[^zh] 重新加载云端日期数据 [$zh]

Parameters
completecallback

◆ reLoadCloudDays: [2/2]

- (void) reLoadCloudDays: (void(^)(NSArray< ThingSmartCloudDayModel * > *cloudDays))  complete

[^en] reload cloud days [$en]

[^zh] 重新加载云端日期数据 [$zh]

Parameters
completecallback

◆ resumeDownloadCloudVideo: [1/2]

- (int) resumeDownloadCloudVideo: (DownloadFailure failure

[^en] resume cloud video download task [$en] [^zh] 恢复云存储视频下载 [$zh]

Parameters
failure[^en] resume success callback. [$en] [^zh] 恢复下载失败回调。 [$zh]

◆ resumeDownloadCloudVideo: [2/2]

- (int) resumeDownloadCloudVideo: (DownloadFailure failure

[^en] resume cloud video download task [$en] [^zh] 恢复云存储视频下载 [$zh]

Parameters
failure[^en] resume success callback. [$en] [^zh] 恢复下载失败回调。 [$zh]

◆ resumePlayCloudVideo [1/2]

- (int) resumePlayCloudVideo

[^en] resume play [$en]

[^zh] 恢复播放 [$zh]

Returns
[^en]errCode 0 is success[$en] [^zh]errCode 0 为成功[$zh]

◆ resumePlayCloudVideo [2/2]

- (int) resumePlayCloudVideo

[^en] resume play [$en]

[^zh] 恢复播放 [$zh]

Returns
[^en]errCode 0 is success[$en] [^zh]errCode 0 为成功[$zh]

◆ setCloudVideoPlaySpeed: [1/2]

- (int) setCloudVideoPlaySpeed: (ThingSmartCameraPlayBackSpeed)  speed

[^en] Set cloud storage multiplier playback speed[$en] [^zh] 设置云存储倍速播放速率 [$zh]

Parameters
speed[^en] multiplier playback speed [$en] [^zh] 倍速播放速率 [$zh]
Returns
[^en]error code[$en] [^zh]错误码[$zh]

◆ setCloudVideoPlaySpeed: [2/2]

- (int) setCloudVideoPlaySpeed: (ThingSmartCameraPlayBackSpeed)  speed

[^en] Set cloud storage multiplier playback speed[$en] [^zh] 设置云存储倍速播放速率 [$zh]

Parameters
speed[^en] multiplier playback speed [$en] [^zh] 倍速播放速率 [$zh]
Returns
[^en]error code[$en] [^zh]错误码[$zh]

◆ setVideoDirection:horizontalMirror: [1/2]

- (int) setVideoDirection: (ThingSmartVideoRotateDirection)  direction
horizontalMirror: (BOOL)  horizontalMirror 

Set the video rotation.

◆ setVideoDirection:horizontalMirror: [2/2]

- (int) setVideoDirection: (ThingSmartVideoRotateDirection)  direction
horizontalMirror: (BOOL)  horizontalMirror 

Set the video rotation.

◆ setVideoDirection:mirror: [1/2]

- (int) setVideoDirection: (ThingSmartVideoRotateDirection)  direction
mirror: (ThingSmartVideoMirrorDirection)  mirror 

Set the video rotation and mirror.

◆ setVideoDirection:mirror: [2/2]

- (int) setVideoDirection: (ThingSmartVideoRotateDirection)  direction
mirror: (ThingSmartVideoMirrorDirection)  mirror 

Set the video rotation and mirror.

◆ snapShoot [1/2]

- (UIImage *) snapShoot

[^en] get a screenshot of th video and save it to photo album. photo asset collection name is bundle name, "[NSBundle mainBundle].infoDictionary[(__bridge NSString *)kCFBundleNameKey]". [$en]

[^zh] 获取视频的截图并存储到系统相册。照片 asset collection 名称为 bundle name,"[NSBundle mainBundle].infoDictionary[(__bridge NSString *)kCFBundleNameKey]" [$zh]

◆ snapShoot [2/2]

- (UIImage *) snapShoot

[^en] get a screenshot of th video and save it to photo album. photo asset collection name is bundle name, "[NSBundle mainBundle].infoDictionary[(__bridge NSString *)kCFBundleNameKey]". [$en]

[^zh] 获取视频的截图并存储到系统相册。照片 asset collection 名称为 bundle name,"[NSBundle mainBundle].infoDictionary[(__bridge NSString *)kCFBundleNameKey]" [$zh]

◆ snapShootAtPath:thumbnilPath: [1/2]

- (UIImage *) snapShootAtPath: (NSString *)  filePath
thumbnilPath: (NSString *)  thumbnilPath 

[^en] get a screenshot of the video and save it to file path. if you do not need a thumbnil, set thumbnilPath nil. [$en]

[^zh] 获取视频的截图并存储到指定的目录,如果不需要缩略图,设置 thumbnilPath 为nil [$zh]

◆ snapShootAtPath:thumbnilPath: [2/2]

- (UIImage *) snapShootAtPath: (NSString *)  filePath
thumbnilPath: (NSString *)  thumbnilPath 

[^en] get a screenshot of the video and save it to file path. if you do not need a thumbnil, set thumbnilPath nil. [$en]

[^zh] 获取视频的截图并存储到指定的目录,如果不需要缩略图,设置 thumbnilPath 为nil [$zh]

◆ startRecord [1/2]

- (int) startRecord

[^en] start record. [$en]

[^zh] 开始录制 [$zh]

◆ startRecord [2/2]

- (int) startRecord

[^en] start record. [$en]

[^zh] 开始录制 [$zh]

◆ startRecordAtPath: [1/2]

- (int) startRecordAtPath: (NSString *)  filePath

[^en] start record and the video will save to the file path. [$en]

[^zh] 开始录制,并且视频将会存到filepath [$zh]

Parameters
filePath[^en]save path[$en] [^zh]保存路径[$zh]

◆ startRecordAtPath: [2/2]

- (int) startRecordAtPath: (NSString *)  filePath

[^en] start record and the video will save to the file path. [$en]

[^zh] 开始录制,并且视频将会存到filepath [$zh]

Parameters
filePath[^en]save path[$en] [^zh]保存路径[$zh]

◆ stopPlayCloudVideo [1/2]

- (int) stopPlayCloudVideo

[^en] stop play [$en]

[^zh] 停止播放 [$zh]

Returns
[^en]errCode 0 is success[$en] [^zh]errCode 0 为成功[$zh]

◆ stopPlayCloudVideo [2/2]

- (int) stopPlayCloudVideo

[^en] stop play [$en]

[^zh] 停止播放 [$zh]

Returns
[^en]errCode 0 is success[$en] [^zh]errCode 0 为成功[$zh]

◆ stopRecord [1/2]

- (int) stopRecord

[^en] stop record. video will save to photo album. photo asset collection name is bundle name, "[NSBundle mainBundle].infoDictionary[(__bridge NSString *)kCFBundleNameKey]". [$en]

[^zh] 停止录制,视频将会存在系统相册。相片asset collection名称为 bundle name,"[NSBundle mainBundle].infoDictionary[(__bridge NSString *)kCFBundleNameKey]" [$zh]

Returns
[^en]error code. return 0 as record success.[$en] [^zh]错误码,返回0代表记录成功[$zh]

◆ stopRecord [2/2]

- (int) stopRecord

[^en] stop record. video will save to photo album. photo asset collection name is bundle name, "[NSBundle mainBundle].infoDictionary[(__bridge NSString *)kCFBundleNameKey]". [$en]

[^zh] 停止录制,视频将会存在系统相册。相片asset collection名称为 bundle name,"[NSBundle mainBundle].infoDictionary[(__bridge NSString *)kCFBundleNameKey]" [$zh]

Returns
[^en]error code. return 0 as record success.[$en] [^zh]错误码,返回0代表记录成功[$zh]

◆ timeEventsWithCloudDay:offset:limit:aiCodes:success:failure: [1/2]

- (void) timeEventsWithCloudDay: (ThingSmartCloudDayModel *)  cloudDay
offset: (int)  offset
limit: (int)  limit
aiCodes: (NSString *)  aiCodes
success: (void(^)(NSArray< ThingSmartCloudTimeEventModel * > *timeEvents))  success
failure: (void(^)(NSError *error))  failure 

[^en] get time event of the day [$en]

[^zh] 获取某天的时间片数据 [$zh]

Parameters
cloudDay[^en]target day[$en] [^zh]目标日期[$zh]
offset[^en]event index offset[$en] [^zh]事件索引偏移量[$zh]
limit[^en]event count limit, -1 is get all[$en] [^zh]事件数量限制,-1代表所有[$zh]
aiCodesai 类型
successsuccess callback
failurefailure callback

◆ timeEventsWithCloudDay:offset:limit:aiCodes:success:failure: [2/2]

- (void) timeEventsWithCloudDay: (ThingSmartCloudDayModel *)  cloudDay
offset: (int)  offset
limit: (int)  limit
aiCodes: (NSString *)  aiCodes
success: (void(^)(NSArray< ThingSmartCloudTimeEventModel * > *timeEvents))  success
failure: (void(^)(NSError *error))  failure 

[^en] get time event of the day [$en]

[^zh] 获取某天的时间片数据 [$zh]

Parameters
cloudDay[^en]target day[$en] [^zh]目标日期[$zh]
offset[^en]event index offset[$en] [^zh]事件索引偏移量[$zh]
limit[^en]event count limit, -1 is get all[$en] [^zh]事件数量限制,-1代表所有[$zh]
aiCodesai 类型
successsuccess callback
failurefailure callback

◆ timeEventsWithCloudDay:offset:limit:success:failure: [1/2]

- (void) timeEventsWithCloudDay: (ThingSmartCloudDayModel *)  cloudDay
offset: (int)  offset
limit: (int)  limit
success: (void(^)(NSArray< ThingSmartCloudTimeEventModel * > *timeEvents))  success
failure: (void(^)(NSError *error))  failure 

[^en] get time event of the day [$en]

[^zh] 获取某天的时间片数据 [$zh]

Parameters
cloudDay[^en]target day[$en] [^zh]目标日期[$zh]
offset[^en]event index offset[$en] [^zh]事件索引偏移量[$zh]
limit[^en]event count limit, -1 is get all[$en] [^zh]事件数量限制,-1代表所有[$zh]
successsuccess callback
failurefailure callback

◆ timeEventsWithCloudDay:offset:limit:success:failure: [2/2]

- (void) timeEventsWithCloudDay: (ThingSmartCloudDayModel *)  cloudDay
offset: (int)  offset
limit: (int)  limit
success: (void(^)(NSArray< ThingSmartCloudTimeEventModel * > *timeEvents))  success
failure: (void(^)(NSError *error))  failure 

[^en] get time event of the day [$en]

[^zh] 获取某天的时间片数据 [$zh]

Parameters
cloudDay[^en]target day[$en] [^zh]目标日期[$zh]
offset[^en]event index offset[$en] [^zh]事件索引偏移量[$zh]
limit[^en]event count limit, -1 is get all[$en] [^zh]事件数量限制,-1代表所有[$zh]
successsuccess callback
failurefailure callback

◆ timeLineWithCloudDay:success:failure: [1/2]

- (void) timeLineWithCloudDay: (ThingSmartCloudDayModel *)  cloudDay
success: (void(^)(NSArray< ThingSmartCloudTimePieceModel * > *timePieces))  success
failure: (void(^)(NSError *error))  failure 

[^en] get time line data of the day [$en]

[^zh] 获取某天的时间轴数据 [$zh]

Parameters
cloudDay[^en]target day[$en] [^zh]目标日期[$zh]
successsuccess callback
failurefailure callback

◆ timeLineWithCloudDay:success:failure: [2/2]

- (void) timeLineWithCloudDay: (ThingSmartCloudDayModel *)  cloudDay
success: (void(^)(NSArray< ThingSmartCloudTimePieceModel * > *timePieces))  success
failure: (void(^)(NSError *error))  failure 

[^en] get time line data of the day [$en]

[^zh] 获取某天的时间轴数据 [$zh]

Parameters
cloudDay[^en]target day[$en] [^zh]目标日期[$zh]
successsuccess callback
failurefailure callback

◆ videoView [1/2]

- (UIView< ThingSmartVideoViewType > *) videoView

[^en] video frame render view [$en]

[^zh] 视频帧渲染视图 [$zh]

Returns
render view

◆ videoView [2/2]

- (UIView< ThingSmartVideoViewType > *) videoView

[^en] video frame render view [$en]

[^zh] 视频帧渲染视图 [$zh]

Returns
render view

Property Documentation

◆ authJson

- (NSString *) authJson
readwritenonatomicstrong

Definition at line 70 of file ThingSmartCloudManager.h.

◆ autoRender

- (BOOL) autoRender
readwritenonatomicassign

Definition at line 62 of file ThingSmartCloudManager.h.

◆ cloudDays

- (NSArray< ThingSmartCloudDayModel * > *) cloudDays
readnonatomicstrong

Definition at line 64 of file ThingSmartCloudManager.h.

◆ delegate

- (id< ThingSmartCloudManagerDelegate >) delegate
readwritenonatomicweak

Definition at line 66 of file ThingSmartCloudManager.h.

◆ devId

- (NSString *) devId
readwritenonatomicstrong

Definition at line 60 of file ThingSmartCloudManager.h.

◆ enableEncryptedImage

- (BOOL) enableEncryptedImage
readwritenonatomicassign

[^en] Enable image encryption, which is disabled by default. After opening, the pictures carried in the event model will be encrypted, and you need to use the ThingEncryptImage component to display or download the pictures. [$en]

[^zh] 开启图片加密,默认为关闭。打开后,云存储事件中携带的图片会加密,需要使用 ThingEncryptImage 组件显示或者下载图片。 [$zh]

Definition at line 85 of file ThingSmartCloudManager.h.

◆ encryptKey

- (NSString *) encryptKey
readwritenonatomicstrong

Definition at line 68 of file ThingSmartCloudManager.h.

◆ timeZone

- (NSTimeZone *) timeZone
readwritenonatomicstrong

Definition at line 72 of file ThingSmartCloudManager.h.

◆ videoStretchSize

- (CGSize) videoStretchSize
readwritenonatomicassign

Definition at line 74 of file ThingSmartCloudManager.h.


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