Tuya iOS Smart Life App SDK 5.15.0
ThingSmartCloudVideoPlayer Class Reference

#import <ThingSmartCloudVideoPlayer.h>

Inheritance diagram for ThingSmartCloudVideoPlayer:

Instance Methods

(instancetype) - initWithDeviceId:
 
(int) - configCloudDataTags:
 
(NSString *) - configCloudDataTagsV2:
 
(NSString *) - getCloudUrlsWithStartTime:endTime:isEvent:authParams:encryptKey:
 
(int) - playCloudDataWithStartTime:endTime:isEvent:authParams:encryptKey:onResponse:onFinish:
 
(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) - startCloudDataDownloadWithStartTime:stopTime:folderPath:fileName:authParams:encryptKey:onResponse:onProgress:onFinish:
 
(int) - pauseCloudDataDownloadWithResponse:
 
(int) - resumeCloudDataDownloadWithResponse:
 
(int) - cancelCloudDataDownloadWithResponse:
 
(int) - setCloudVideoPlaySpeed:
 
(int) - playVideoMessageWithUrl:startTime:encryptKey:onResponse:onFinish:
 
(int) - pausePlayVideoMessage
 
(int) - resumePlayVideoMessage
 
(int) - stopPlayVideoMessage
 
(int) - playAudioMessageWithUrl:startTime:encryptKey:onResponse:onFinish:
 
(int) - startVideoMessageDownloadWithUrl:encryptKey:filePath:rotateDirection:success:progress:failure:
 
(int) - pausePlayAudioMessage
 
(int) - resumePlayAudioMessage
 
(int) - stopPlayAudioMessage
 
(int) - startVideoMessageDownloadWithUrl:encryptKey:filePath:success:progress:failure:
 
(int) - pauseVideoMessageDownload:
 
(int) - resumeVideoMessageDownload:
 
(int) - cancelVideoMessageDownload
 
(int) - convertMJPEGVideoToImagesWithUrl:encryptKey:imageFileDirectory:success:failure:
 
(int) - cancelMJPEGVideoConvert
 
(int) - setDeviceFeatures:
 
(instancetype) - initWithDeviceId:
 
(int) - configCloudDataTags:
 
(NSString *) - configCloudDataTagsV2:
 
(NSString *) - getCloudUrlsWithStartTime:endTime:isEvent:authParams:encryptKey:
 
(int) - playCloudDataWithStartTime:endTime:isEvent:authParams:encryptKey:onResponse:onFinish:
 
(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) - startCloudDataDownloadWithStartTime:stopTime:folderPath:fileName:authParams:encryptKey:onResponse:onProgress:onFinish:
 
(int) - pauseCloudDataDownloadWithResponse:
 
(int) - resumeCloudDataDownloadWithResponse:
 
(int) - cancelCloudDataDownloadWithResponse:
 
(int) - setCloudVideoPlaySpeed:
 
(int) - playVideoMessageWithUrl:startTime:encryptKey:onResponse:onFinish:
 
(int) - pausePlayVideoMessage
 
(int) - resumePlayVideoMessage
 
(int) - stopPlayVideoMessage
 
(int) - playAudioMessageWithUrl:startTime:encryptKey:onResponse:onFinish:
 
(int) - startVideoMessageDownloadWithUrl:encryptKey:filePath:rotateDirection:success:progress:failure:
 
(int) - pausePlayAudioMessage
 
(int) - resumePlayAudioMessage
 
(int) - stopPlayAudioMessage
 
(int) - startVideoMessageDownloadWithUrl:encryptKey:filePath:success:progress:failure:
 
(int) - pauseVideoMessageDownload:
 
(int) - resumeVideoMessageDownload:
 
(int) - cancelVideoMessageDownload
 
(int) - convertMJPEGVideoToImagesWithUrl:encryptKey:imageFileDirectory:success:failure:
 
(int) - cancelMJPEGVideoConvert
 
(int) - setDeviceFeatures:
 

Properties

NSString * devId
 
BOOL autoPlay
 
id< ThingSmartCloudVideoPlayerDelegatedelegate
 

Detailed Description

Definition at line 21 of file ThingSmartCloudVideoPlayer.h.

Method Documentation

◆ cancelCloudDataDownloadWithResponse: [1/2]

- (int) cancelCloudDataDownloadWithResponse: (void(^)(int))  callback

◆ cancelCloudDataDownloadWithResponse: [2/2]

- (int) cancelCloudDataDownloadWithResponse: (void(^)(int))  callback

◆ cancelMJPEGVideoConvert [1/2]

- (int) cancelMJPEGVideoConvert

◆ cancelMJPEGVideoConvert [2/2]

- (int) cancelMJPEGVideoConvert

◆ cancelVideoMessageDownload [1/2]

- (int) cancelVideoMessageDownload

◆ cancelVideoMessageDownload [2/2]

- (int) cancelVideoMessageDownload

◆ configCloudDataTags: [1/2]

- (int) configCloudDataTags: (NSString *)  jsonCloudDataTags

[^en] config cloud data tags. [$en]

[^zh] 配置云端数据标签 [$zh]

◆ configCloudDataTags: [2/2]

- (int) configCloudDataTags: (NSString *)  jsonCloudDataTags

[^en] config cloud data tags. [$en]

[^zh] 配置云端数据标签 [$zh]

◆ configCloudDataTagsV2: [1/2]

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

◆ configCloudDataTagsV2: [2/2]

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

◆ convertMJPEGVideoToImagesWithUrl:encryptKey:imageFileDirectory:success:failure: [1/2]

- (int) convertMJPEGVideoToImagesWithUrl: (NSString *)  urlPath
encryptKey: (NSString *)  encryptKey
imageFileDirectory: (NSString *)  directoryPath
success: (void(^)(NSArray *imageFiles))  successCallback
failure: (void(^)(int errCode))  failureCallback 

◆ convertMJPEGVideoToImagesWithUrl:encryptKey:imageFileDirectory:success:failure: [2/2]

- (int) convertMJPEGVideoToImagesWithUrl: (NSString *)  urlPath
encryptKey: (NSString *)  encryptKey
imageFileDirectory: (NSString *)  directoryPath
success: (void(^)(NSArray *imageFiles))  successCallback
failure: (void(^)(int errCode))  failureCallback 

◆ destroy [1/2]

- (void) destroy

[^en] release resources. [$en]

[^zh] 释放资源 [$zh]

◆ destroy [2/2]

- (void) destroy

[^en] release resources. [$en]

[^zh] 释放资源 [$zh]

◆ 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.

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

- (NSString *) getCloudUrlsWithStartTime: (int)  startTime
endTime: (int)  endTime
isEvent: (bool)  isEvent
authParams: (NSString *)  jsonAuthParams
encryptKey: (NSString *)  encryptKey 

[^en] get cloud url [$en]

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

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

- (NSString *) getCloudUrlsWithStartTime: (int)  startTime
endTime: (int)  endTime
isEvent: (bool)  isEvent
authParams: (NSString *)  jsonAuthParams
encryptKey: (NSString *)  encryptKey 

[^en] get cloud url [$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
[^en]BOOL[$en] [^zh]是否静音BOOL值[$zh]

◆ isMuted [2/2]

- (BOOL) isMuted

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

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

Returns
[^en]BOOL[$en] [^zh]是否静音BOOL值[$zh]

◆ pauseCloudDataDownloadWithResponse: [1/2]

- (int) pauseCloudDataDownloadWithResponse: (void(^)(int))  callback

◆ pauseCloudDataDownloadWithResponse: [2/2]

- (int) pauseCloudDataDownloadWithResponse: (void(^)(int))  callback

◆ pausePlayAudioMessage [1/2]

- (int) pausePlayAudioMessage

[^en] pause play audio [$en]

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

Returns
[^en]error code[$en] [^zh]错误码[$zh]

◆ pausePlayAudioMessage [2/2]

- (int) pausePlayAudioMessage

[^en] pause play audio [$en]

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

Returns
[^en]error code[$en] [^zh]错误码[$zh]

◆ pausePlayCloudVideo [1/2]

- (int) pausePlayCloudVideo

[^en] pause play cloud video. [$en]

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

Returns
[^en]error Code, 0 is success.[$en] [^zh]错误码,0代表成功[$zh]

◆ pausePlayCloudVideo [2/2]

- (int) pausePlayCloudVideo

[^en] pause play cloud video. [$en]

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

Returns
[^en]error Code, 0 is success.[$en] [^zh]错误码,0代表成功[$zh]

◆ pausePlayVideoMessage [1/2]

- (int) pausePlayVideoMessage

[^en] pause play video [$en]

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

Returns
[^en]error code[$en] [^zh]错误码[$zh]

◆ pausePlayVideoMessage [2/2]

- (int) pausePlayVideoMessage

[^en] pause play video [$en]

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

Returns
[^en]error code[$en] [^zh]错误码[$zh]

◆ pauseVideoMessageDownload: [1/2]

- (int) pauseVideoMessageDownload: (void(^)(int errCode))  callback

◆ pauseVideoMessageDownload: [2/2]

- (int) pauseVideoMessageDownload: (void(^)(int errCode))  callback

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

- (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]

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
[^en]error code[$en] [^zh]错误码[$zh]

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

- (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]

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
[^en]error code[$en] [^zh]错误码[$zh]

◆ playCloudDataWithStartTime:endTime:isEvent:authParams:encryptKey:onResponse:onFinish: [1/2]

- (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]

◆ playCloudDataWithStartTime:endTime:isEvent:authParams:encryptKey:onResponse:onFinish: [2/2]

- (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]

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

- (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]

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
[^en]error code[$en] [^zh]错误码[$zh]

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

- (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]

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
[^en]error code[$en] [^zh]错误码[$zh]

◆ resumeCloudDataDownloadWithResponse: [1/2]

- (int) resumeCloudDataDownloadWithResponse: (void(^)(int))  callback

◆ resumeCloudDataDownloadWithResponse: [2/2]

- (int) resumeCloudDataDownloadWithResponse: (void(^)(int))  callback

◆ resumePlayAudioMessage [1/2]

- (int) resumePlayAudioMessage

[^en] resume play audio [$en]

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

Returns
[^en]error code[$en] [^zh]错误码[$zh]

◆ resumePlayAudioMessage [2/2]

- (int) resumePlayAudioMessage

[^en] resume play audio [$en]

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

Returns
[^en]error code[$en] [^zh]错误码[$zh]

◆ resumePlayCloudVideo [1/2]

- (int) resumePlayCloudVideo

[^en] resume play cloud video. [$en]

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

Returns
[^en]error Code, 0 is success.[$en] [^zh]错误码,0代表成功[$zh]

◆ resumePlayCloudVideo [2/2]

- (int) resumePlayCloudVideo

[^en] resume play cloud video. [$en]

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

Returns
[^en]error Code, 0 is success.[$en] [^zh]错误码,0代表成功[$zh]

◆ resumePlayVideoMessage [1/2]

- (int) resumePlayVideoMessage

[^en] resume play video [$en]

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

Returns
[^en]error code[$en] [^zh]错误码[$zh]

◆ resumePlayVideoMessage [2/2]

- (int) resumePlayVideoMessage

[^en] resume play video [$en]

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

Returns
[^en]error code[$en] [^zh]错误码[$zh]

◆ resumeVideoMessageDownload: [1/2]

- (int) resumeVideoMessageDownload: (void(^)(int errCode))  callback

◆ resumeVideoMessageDownload: [2/2]

- (int) resumeVideoMessageDownload: (void(^)(int errCode))  callback

◆ 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]

◆ setDeviceFeatures: [1/2]

- (int) setDeviceFeatures: (NSDictionary *)  features

◆ setDeviceFeatures: [2/2]

- (int) setDeviceFeatures: (NSDictionary *)  features

◆ snapShoot [1/2]

- (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]

◆ snapShoot [2/2]

- (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]

◆ 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]

◆ startCloudDataDownloadWithStartTime:stopTime:folderPath:fileName:authParams:encryptKey:onResponse:onProgress:onFinish: [1/2]

- (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 

◆ startCloudDataDownloadWithStartTime:stopTime:folderPath:fileName:authParams:encryptKey:onResponse:onProgress:onFinish: [2/2]

- (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 

◆ startRecord [1/2]

- (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]

◆ startRecord [2/2]

- (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]

◆ 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]

◆ startVideoMessageDownloadWithUrl:encryptKey:filePath:rotateDirection:success:progress:failure: [1/2]

- (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 

◆ startVideoMessageDownloadWithUrl:encryptKey:filePath:rotateDirection:success:progress:failure: [2/2]

- (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 

◆ startVideoMessageDownloadWithUrl:encryptKey:filePath:success:progress:failure: [1/2]

- (int) startVideoMessageDownloadWithUrl: (NSString *)  url
encryptKey: (NSString *)  encryptKey
filePath: (NSString *)  filePath
success: (void(^)(void))  successCallback
progress: (void(^)(int progress))  progressCallBack
failure: (void(^)(int errCode))  failureCallBack 

◆ startVideoMessageDownloadWithUrl:encryptKey:filePath:success:progress:failure: [2/2]

- (int) startVideoMessageDownloadWithUrl: (NSString *)  url
encryptKey: (NSString *)  encryptKey
filePath: (NSString *)  filePath
success: (void(^)(void))  successCallback
progress: (void(^)(int progress))  progressCallBack
failure: (void(^)(int errCode))  failureCallBack 

◆ stopPlayAudioMessage [1/2]

- (int) stopPlayAudioMessage

[^en] stop play audio [$en]

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

Returns
[^en]error code[$en] [^zh]错误码[$zh]

◆ stopPlayAudioMessage [2/2]

- (int) stopPlayAudioMessage

[^en] stop play audio [$en]

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

Returns
[^en]error code[$en] [^zh]错误码[$zh]

◆ stopPlayCloudVideo [1/2]

- (int) stopPlayCloudVideo

[^en] stop play cloud video. [$en]

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

Returns
[^en]error Code, 0 is success.[$en] [^zh]错误码,0代表成功[$zh]

◆ stopPlayCloudVideo [2/2]

- (int) stopPlayCloudVideo

[^en] stop play cloud video. [$en]

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

Returns
[^en]error Code, 0 is success.[$en] [^zh]错误码,0代表成功[$zh]

◆ stopPlayVideoMessage [1/2]

- (int) stopPlayVideoMessage

[^en] stop play video [$en]

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

Returns
[^en]error code[$en] [^zh]错误码[$zh]

◆ stopPlayVideoMessage [2/2]

- (int) stopPlayVideoMessage

[^en] stop play video [$en]

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

Returns
[^en]error code[$en] [^zh]错误码[$zh]

◆ stopRecord [1/2]

- (int) stopRecord

[^en] stop record. [$en]

[^zh] 停止录制 [$zh]

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

◆ stopRecord [2/2]

- (int) stopRecord

[^en] stop record. [$en]

[^zh] 停止录制 [$zh]

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

◆ 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

◆ autoPlay

- (BOOL) autoPlay
readwritenonatomicassign

Definition at line 25 of file ThingSmartCloudVideoPlayer.h.

◆ delegate

- (id< ThingSmartCloudVideoPlayerDelegate >) delegate
readwritenonatomicweak

Definition at line 27 of file ThingSmartCloudVideoPlayer.h.

◆ devId

- (NSString *) devId
readnonatomicstrong

Definition at line 23 of file ThingSmartCloudVideoPlayer.h.


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