![]() |
Tuya iOS Smart Life App SDK 5.15.0
|
#import <ThingSmartCameraMessageMediaPlayer.h>
Properties | |
| id< ThingSmartCameraMessageMediaPlayerDelegate > | delegate |
| CGSize | videoStretchSize |
Definition at line 22 of file ThingSmartCameraMessageMediaPlayer.h.
| - (int) cancelMJPEGVideoConvert |
cancel convert MJPEG video into images
| - (int) cancelMJPEGVideoConvert |
cancel convert MJPEG video into images
| - (void) convertMJPEGVideoIntoImagesWithVideoPath: | (NSString *) | videoPath | |
| success: | (void(^)(NSArray *imageFiles)) | successCallback | |
| failure: | (void(^)(int errCode)) | failureCallback | |
convert MJPEG video into image files
| videoPath | video path from message model. |
| successCallback | success call back. the element of imageFiles is NSDictionary |
"timestamp": 111111111, @"filename": 111111111.jpg, @"filepath": temp/videoname/11111111.jpg }
| failureCallback | failed call back. |
| - (void) convertMJPEGVideoIntoImagesWithVideoPath: | (NSString *) | videoPath | |
| success: | (void(^)(NSArray *imageFiles)) | successCallback | |
| failure: | (void(^)(int errCode)) | failureCallback | |
convert MJPEG video into image files
| videoPath | video path from message model. |
| successCallback | success call back. the element of imageFiles is NSDictionary |
"timestamp": 111111111, @"filename": 111111111.jpg, @"filepath": temp/videoname/11111111.jpg }
| failureCallback | failed call back. |
| - (void) 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. |
| - (void) 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. |
| - (instancetype) initWithDeviceId: | (NSString *) | devId |
| - (instancetype) initWithDeviceId: | (NSString *) | devId |
| - (int) pausePlay: | (ThingCameraMessageAttachmentType) | attachmentType |
[^en] pause play attachment [$en]
[^zh] 暂停播放 [$zh]
| - (int) pausePlay: | (ThingCameraMessageAttachmentType) | attachmentType |
[^en] pause play attachment [$en]
[^zh] 暂停播放 [$zh]
| - (void) playMessage: | (ThingSmartCameraMessageModel *) | messageModel | |
| attachmentType: | (ThingCameraMessageAttachmentType) | attachmentType | |
| success: | (void(^)(void)) | success | |
| failure: | (void(^)(int errCode)) | failure | |
| finished: | (void(^)(int errCode)) | onFinish | |
[^en] play attachment in detect message [$en]
[^zh] 播放报警消息中的附件 [$zh]
| messageModel | [^en]message model[$en] [^zh]消息模型[$zh] |
| attachmentType | [^en]attachment type[$en] [^zh]附件类型[$zh] |
| success | success callback |
| failure | failure callback |
| onFinish | finish callback |
| - (void) playMessage: | (ThingSmartCameraMessageModel *) | messageModel | |
| attachmentType: | (ThingCameraMessageAttachmentType) | attachmentType | |
| success: | (void(^)(void)) | success | |
| failure: | (void(^)(int errCode)) | failure | |
| finished: | (void(^)(int errCode)) | onFinish | |
[^en] play attachment in detect message [$en]
[^zh] 播放报警消息中的附件 [$zh]
| messageModel | [^en]message model[$en] [^zh]消息模型[$zh] |
| attachmentType | [^en]attachment type[$en] [^zh]附件类型[$zh] |
| success | success callback |
| failure | failure callback |
| onFinish | finish callback |
| - (void) playMessageAttachment: | (NSString *) | attachmentPath | |
| type: | (ThingCameraMessageAttachmentType) | attachmentType | |
| startTime: | (NSInteger) | startTime | |
| success: | (void(^)(void)) | success | |
| failure: | (void(^)(int errCode)) | failure | |
| finished: | (void(^)(int errCode)) | onFinish | |
[^en] play attachment in detect message [$en]
[^zh] 播放报警消息中的附件 [$zh]
| attachmentPath | [^en]attachment path[$en] [^zh]附件地址[$zh] |
| attachmentType | [^en]attachment type[$en] [^zh]附件类型[$zh] |
| startTime | [^en]start time to play[$en] [^zh]开始播放的时间点[$zh] |
| success | success callback |
| failure | failure callback |
| onFinish | finish callback |
| - (void) playMessageAttachment: | (NSString *) | attachmentPath | |
| type: | (ThingCameraMessageAttachmentType) | attachmentType | |
| startTime: | (NSInteger) | startTime | |
| success: | (void(^)(void)) | success | |
| failure: | (void(^)(int errCode)) | failure | |
| finished: | (void(^)(int errCode)) | onFinish | |
[^en] play attachment in detect message [$en]
[^zh] 播放报警消息中的附件 [$zh]
| attachmentPath | [^en]attachment path[$en] [^zh]附件地址[$zh] |
| attachmentType | [^en]attachment type[$en] [^zh]附件类型[$zh] |
| startTime | [^en]start time to play[$en] [^zh]开始播放的时间点[$zh] |
| success | success callback |
| failure | failure callback |
| onFinish | finish callback |
| - (void) playMessageAttachment: | (NSString *) | attachmentPath | |
| type: | (ThingCameraMessageAttachmentType) | attachmentType | |
| success: | (void(^)(void)) | success | |
| failure: | (void(^)(int errCode)) | failure | |
| finished: | (void(^)(int errCode)) | onFinish | |
[^en] play attachment in detect message [$en]
[^zh] 播放报警消息中的附件 [$zh]
| attachmentPath | [^en]attachment path[$en] [^zh]附件地址[$zh] |
| attachmentType | [^en]attachment type[$en] [^zh]附件类型[$zh] |
| success | success callback |
| failure | failure callback |
| onFinish | finish callback |
| - (void) playMessageAttachment: | (NSString *) | attachmentPath | |
| type: | (ThingCameraMessageAttachmentType) | attachmentType | |
| success: | (void(^)(void)) | success | |
| failure: | (void(^)(int errCode)) | failure | |
| finished: | (void(^)(int errCode)) | onFinish | |
[^en] play attachment in detect message [$en]
[^zh] 播放报警消息中的附件 [$zh]
| attachmentPath | [^en]attachment path[$en] [^zh]附件地址[$zh] |
| attachmentType | [^en]attachment type[$en] [^zh]附件类型[$zh] |
| success | success callback |
| failure | failure callback |
| onFinish | finish callback |
| - (int) resumePlay: | (ThingCameraMessageAttachmentType) | attachmentType |
[^en] resume play attachment [$en]
[^zh] 恢复播放 [$zh]
| - (int) resumePlay: | (ThingCameraMessageAttachmentType) | attachmentType |
[^en] resume play attachment [$en]
[^zh] 恢复播放 [$zh]
| - (int) setDeviceFeatures: | (NSDictionary *) | features |
| - (int) setDeviceFeatures: | (NSDictionary *) | features |
| - (int) stopPlay: | (ThingCameraMessageAttachmentType) | attachmentType |
[^en] stop play attachment [$en]
[^zh] 停止播放 [$zh]
| - (int) stopPlay: | (ThingCameraMessageAttachmentType) | attachmentType |
[^en] stop play attachment [$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]
|
readwritenonatomicweak |
Definition at line 24 of file ThingSmartCameraMessageMediaPlayer.h.
|
readwritenonatomicassign |
Definition at line 26 of file ThingSmartCameraMessageMediaPlayer.h.