![]() |
Tuya iOS Smart Life App SDK 5.15.0
|
#import <ThingSmartCloudVideoPlayer.h>
Properties | |
NSString * | devId |
BOOL | autoPlay |
id< ThingSmartCloudVideoPlayerDelegate > | delegate |
Definition at line 21 of file ThingSmartCloudVideoPlayer.h.
- (int) cancelCloudDataDownloadWithResponse: | (void(^)(int)) | callback |
- (int) cancelCloudDataDownloadWithResponse: | (void(^)(int)) | callback |
- (int) cancelMJPEGVideoConvert |
- (int) cancelMJPEGVideoConvert |
- (int) cancelVideoMessageDownload |
- (int) cancelVideoMessageDownload |
- (int) configCloudDataTags: | (NSString *) | jsonCloudDataTags |
[^en] config cloud data tags. [$en]
[^zh] 配置云端数据标签 [$zh]
- (int) configCloudDataTags: | (NSString *) | jsonCloudDataTags |
[^en] config cloud data tags. [$en]
[^zh] 配置云端数据标签 [$zh]
- (NSString *) configCloudDataTagsV2: | (NSString *) | jsonCloudDataTags |
- (NSString *) configCloudDataTagsV2: | (NSString *) | jsonCloudDataTags |
- (int) convertMJPEGVideoToImagesWithUrl: | (NSString *) | urlPath | |
encryptKey: | (NSString *) | encryptKey | |
imageFileDirectory: | (NSString *) | directoryPath | |
success: | (void(^)(NSArray *imageFiles)) | successCallback | |
failure: | (void(^)(int errCode)) | failureCallback | |
- (int) convertMJPEGVideoToImagesWithUrl: | (NSString *) | urlPath | |
encryptKey: | (NSString *) | encryptKey | |
imageFileDirectory: | (NSString *) | directoryPath | |
success: | (void(^)(NSArray *imageFiles)) | successCallback | |
failure: | (void(^)(int errCode)) | failureCallback | |
- (void) destroy |
[^en] release resources. [$en]
[^zh] 释放资源 [$zh]
- (void) destroy |
[^en] release resources. [$en]
[^zh] 释放资源 [$zh]
- (int) enableMute: | (BOOL) | mute | |
success: | (void(^)(void)) | success | |
failure: | (void(^)(NSError *error)) | failure | |
[^en] set mute. [$en]
[^zh] 设置静音 [$zh]
mute | [^en]mute sound.[$en] [^zh]禁用声音[$zh] |
success | success call back. |
failure | failed call back. |
- (int) enableMute: | (BOOL) | mute | |
success: | (void(^)(void)) | success | |
failure: | (void(^)(NSError *error)) | failure | |
[^en] set mute. [$en]
[^zh] 设置静音 [$zh]
mute | [^en]mute sound.[$en] [^zh]禁用声音[$zh] |
success | success call back. |
failure | failed call back. |
- (NSString *) getCloudUrlsWithStartTime: | (int) | startTime | |
endTime: | (int) | endTime | |
isEvent: | (bool) | isEvent | |
authParams: | (NSString *) | jsonAuthParams | |
encryptKey: | (NSString *) | encryptKey | |
[^en] get cloud url [$en]
[^zh] 获取云存储url [$zh]
- (NSString *) getCloudUrlsWithStartTime: | (int) | startTime | |
endTime: | (int) | endTime | |
isEvent: | (bool) | isEvent | |
authParams: | (NSString *) | jsonAuthParams | |
encryptKey: | (NSString *) | encryptKey | |
[^en] get cloud url [$en]
[^zh] 获取云存储url [$zh]
- (instancetype) initWithDeviceId: | (NSString *) | devId |
- (instancetype) initWithDeviceId: | (NSString *) | devId |
- (BOOL) isMuted |
[^en] get mute state. [$en]
[^zh] 获取设备静音状态 [$zh]
- (BOOL) isMuted |
[^en] get mute state. [$en]
[^zh] 获取设备静音状态 [$zh]
- (int) pauseCloudDataDownloadWithResponse: | (void(^)(int)) | callback |
- (int) pauseCloudDataDownloadWithResponse: | (void(^)(int)) | callback |
- (int) pausePlayAudioMessage |
[^en] pause play audio [$en]
[^zh] 暂停播放s音频 [$zh]
- (int) pausePlayAudioMessage |
[^en] pause play audio [$en]
[^zh] 暂停播放s音频 [$zh]
- (int) pausePlayCloudVideo |
[^en] pause play cloud video. [$en]
[^zh] 暂停播放云视频 [$zh]
- (int) pausePlayCloudVideo |
[^en] pause play cloud video. [$en]
[^zh] 暂停播放云视频 [$zh]
- (int) pausePlayVideoMessage |
[^en] pause play video [$en]
[^zh] 暂停播放视频 [$zh]
- (int) pausePlayVideoMessage |
[^en] pause play video [$en]
[^zh] 暂停播放视频 [$zh]
- (int) pauseVideoMessageDownload: | (void(^)(int errCode)) | callback |
- (int) pauseVideoMessageDownload: | (void(^)(int errCode)) | callback |
- (int) playAudioMessageWithUrl: | (NSString *) | url | |
startTime: | (int) | nStartTime | |
encryptKey: | (NSString *) | encryptKey | |
onResponse: | (void(^)(int errCode)) | callback | |
onFinish: | (void(^)(int errCode)) | finihedCallBack | |
[^en] play encrypt audio in detect message [$en]
[^zh] 在侦测消息中播放加密音频 [$zh]
url | [^en]audio path[$en] [^zh]音频地址[$zh] |
nStartTime | [^en]Start time to play[$en] [^zh]开始播放时间[$zh] |
encryptKey | [^en]encrypt key[$en] [^zh]加密key[$zh] |
callback | start callback |
finihedCallBack | finish callback |
- (int) playAudioMessageWithUrl: | (NSString *) | url | |
startTime: | (int) | nStartTime | |
encryptKey: | (NSString *) | encryptKey | |
onResponse: | (void(^)(int errCode)) | callback | |
onFinish: | (void(^)(int errCode)) | finihedCallBack | |
[^en] play encrypt audio in detect message [$en]
[^zh] 在侦测消息中播放加密音频 [$zh]
url | [^en]audio path[$en] [^zh]音频地址[$zh] |
nStartTime | [^en]Start time to play[$en] [^zh]开始播放时间[$zh] |
encryptKey | [^en]encrypt key[$en] [^zh]加密key[$zh] |
callback | start callback |
finihedCallBack | finish callback |
- (int) playCloudDataWithStartTime: | (int) | nStartTime | |
endTime: | (int) | nEndTime | |
isEvent: | (BOOL) | isEvent | |
authParams: | (NSString *) | jsonAuthParams | |
encryptKey: | (NSString *) | encryptKey | |
onResponse: | (void(^)(int errCode)) | responseCallback | |
onFinish: | (void(^)(int errCode)) | finishCallBack | |
[^en] start play cloud video. [$en]
[^zh] 开始播放云视频 [$zh]
- (int) playCloudDataWithStartTime: | (int) | nStartTime | |
endTime: | (int) | nEndTime | |
isEvent: | (BOOL) | isEvent | |
authParams: | (NSString *) | jsonAuthParams | |
encryptKey: | (NSString *) | encryptKey | |
onResponse: | (void(^)(int errCode)) | responseCallback | |
onFinish: | (void(^)(int errCode)) | finishCallBack | |
[^en] start play cloud video. [$en]
[^zh] 开始播放云视频 [$zh]
- (int) playVideoMessageWithUrl: | (NSString *) | url | |
startTime: | (int) | nStartTime | |
encryptKey: | (NSString *) | encryptKey | |
onResponse: | (void(^)(int errCode)) | callback | |
onFinish: | (void(^)(int errCode)) | finihedCallBack | |
[^en] play encrypt video in detect message [$en]
[^zh] 在侦测消息中播放加密视频 [$zh]
url | [^en]video path[$en] [^zh]视频地址[$zh] |
nStartTime | [^en]Start time to play[$en] [^zh]开始播放的时间[$zh] |
encryptKey | [^en]encrypt key[$en] [^zh]加密key[$zh] |
callback | start callback |
finihedCallBack | finish callback |
- (int) playVideoMessageWithUrl: | (NSString *) | url | |
startTime: | (int) | nStartTime | |
encryptKey: | (NSString *) | encryptKey | |
onResponse: | (void(^)(int errCode)) | callback | |
onFinish: | (void(^)(int errCode)) | finihedCallBack | |
[^en] play encrypt video in detect message [$en]
[^zh] 在侦测消息中播放加密视频 [$zh]
url | [^en]video path[$en] [^zh]视频地址[$zh] |
nStartTime | [^en]Start time to play[$en] [^zh]开始播放的时间[$zh] |
encryptKey | [^en]encrypt key[$en] [^zh]加密key[$zh] |
callback | start callback |
finihedCallBack | finish callback |
- (int) resumeCloudDataDownloadWithResponse: | (void(^)(int)) | callback |
- (int) resumeCloudDataDownloadWithResponse: | (void(^)(int)) | callback |
- (int) resumePlayAudioMessage |
[^en] resume play audio [$en]
[^zh] 恢复播放音频 [$zh]
- (int) resumePlayAudioMessage |
[^en] resume play audio [$en]
[^zh] 恢复播放音频 [$zh]
- (int) resumePlayCloudVideo |
[^en] resume play cloud video. [$en]
[^zh] 恢复播放云视频 [$zh]
- (int) resumePlayCloudVideo |
[^en] resume play cloud video. [$en]
[^zh] 恢复播放云视频 [$zh]
- (int) resumePlayVideoMessage |
[^en] resume play video [$en]
[^zh] 恢复播放视频 [$zh]
- (int) resumePlayVideoMessage |
[^en] resume play video [$en]
[^zh] 恢复播放视频 [$zh]
- (int) resumeVideoMessageDownload: | (void(^)(int errCode)) | callback |
- (int) resumeVideoMessageDownload: | (void(^)(int errCode)) | callback |
- (int) setCloudVideoPlaySpeed: | (ThingSmartCameraPlayBackSpeed) | speed |
[^en] Set cloud storage multiplier playback speed[$en] [^zh] 设置云存储倍速播放速率 [$zh]
speed | [^en] multiplier playback speed [$en] [^zh] 倍速播放速率 [$zh] |
- (int) setCloudVideoPlaySpeed: | (ThingSmartCameraPlayBackSpeed) | speed |
[^en] Set cloud storage multiplier playback speed[$en] [^zh] 设置云存储倍速播放速率 [$zh]
speed | [^en] multiplier playback speed [$en] [^zh] 倍速播放速率 [$zh] |
- (int) setDeviceFeatures: | (NSDictionary *) | features |
- (int) setDeviceFeatures: | (NSDictionary *) | features |
- (UIImage *) snapShoot |
[^en] get a screenshot of the 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]
- (UIImage *) snapShoot |
[^en] get a screenshot of the 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]
- (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]
- (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]
- (int) startCloudDataDownloadWithStartTime: | (int) | startTime | |
stopTime: | (int) | stopTime | |
folderPath: | (NSString *) | folderPath | |
fileName: | (NSString *) | mp4FileName | |
authParams: | (NSString *) | jsonAuthParams | |
encryptKey: | (NSString *) | encryptKey | |
onResponse: | (void(^)(int errCode)) | callback | |
onProgress: | (void(^)(int errCode, int nPos)) | progressCallBack | |
onFinish: | (void(^)(int errCode)) | finishedCallBack | |
- (int) startCloudDataDownloadWithStartTime: | (int) | startTime | |
stopTime: | (int) | stopTime | |
folderPath: | (NSString *) | folderPath | |
fileName: | (NSString *) | mp4FileName | |
authParams: | (NSString *) | jsonAuthParams | |
encryptKey: | (NSString *) | encryptKey | |
onResponse: | (void(^)(int errCode)) | callback | |
onProgress: | (void(^)(int errCode, int nPos)) | progressCallBack | |
onFinish: | (void(^)(int errCode)) | finishedCallBack | |
- (int) startRecord |
[^en] start 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]
- (int) startRecord |
[^en] start 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]
- (int) startRecordAtPath: | (NSString *) | filePath |
[^en] start record and the video will save to the file path. [$en]
[^zh] 开始录制并且视频将会存储到指定 filepath [$zh]
filePath | [^en]save path[$en] [^zh]保存路径[$zh] |
- (int) startRecordAtPath: | (NSString *) | filePath |
[^en] start record and the video will save to the file path. [$en]
[^zh] 开始录制并且视频将会存储到指定 filepath [$zh]
filePath | [^en]save path[$en] [^zh]保存路径[$zh] |
- (int) startVideoMessageDownloadWithUrl: | (NSString *) | url | |
encryptKey: | (NSString *) | encryptKey | |
filePath: | (NSString *) | filePath | |
rotateDirection: | (ThingSmartVideoRotateDirection) | rotateDirection | |
success: | (void(^)(void)) | successCallback | |
progress: | (void(^)(int)) | progressCallBack | |
failure: | (void(^)(int)) | failureCallBack | |
- (int) startVideoMessageDownloadWithUrl: | (NSString *) | url | |
encryptKey: | (NSString *) | encryptKey | |
filePath: | (NSString *) | filePath | |
rotateDirection: | (ThingSmartVideoRotateDirection) | rotateDirection | |
success: | (void(^)(void)) | successCallback | |
progress: | (void(^)(int)) | progressCallBack | |
failure: | (void(^)(int)) | failureCallBack | |
- (int) startVideoMessageDownloadWithUrl: | (NSString *) | url | |
encryptKey: | (NSString *) | encryptKey | |
filePath: | (NSString *) | filePath | |
success: | (void(^)(void)) | successCallback | |
progress: | (void(^)(int progress)) | progressCallBack | |
failure: | (void(^)(int errCode)) | failureCallBack | |
- (int) startVideoMessageDownloadWithUrl: | (NSString *) | url | |
encryptKey: | (NSString *) | encryptKey | |
filePath: | (NSString *) | filePath | |
success: | (void(^)(void)) | successCallback | |
progress: | (void(^)(int progress)) | progressCallBack | |
failure: | (void(^)(int errCode)) | failureCallBack | |
- (int) stopPlayAudioMessage |
[^en] stop play audio [$en]
[^zh] 停止播放音频 [$zh]
- (int) stopPlayAudioMessage |
[^en] stop play audio [$en]
[^zh] 停止播放音频 [$zh]
- (int) stopPlayCloudVideo |
[^en] stop play cloud video. [$en]
[^zh] 停止播放云视频 [$zh]
- (int) stopPlayCloudVideo |
[^en] stop play cloud video. [$en]
[^zh] 停止播放云视频 [$zh]
- (int) stopPlayVideoMessage |
[^en] stop play video [$en]
[^zh] 停止播放视频 [$zh]
- (int) stopPlayVideoMessage |
[^en] stop play video [$en]
[^zh] 停止播放视频 [$zh]
- (int) stopRecord |
[^en] stop record. [$en]
[^zh] 停止录制 [$zh]
- (int) stopRecord |
[^en] stop record. [$en]
[^zh] 停止录制 [$zh]
- (UIView< ThingSmartVideoViewType > *) videoView |
[^en] video frame render view [$en]
[^zh] 视频帧数据渲染视图 [$zh]
- (UIView< ThingSmartVideoViewType > *) videoView |
[^en] video frame render view [$en]
[^zh] 视频帧数据渲染视图 [$zh]
|
readwritenonatomicassign |
Definition at line 25 of file ThingSmartCloudVideoPlayer.h.
|
readwritenonatomicweak |
Definition at line 27 of file ThingSmartCloudVideoPlayer.h.
|
readnonatomicstrong |
Definition at line 23 of file ThingSmartCloudVideoPlayer.h.