Tuya iOS Smart Life App SDK 5.15.0
ThingSmartCameraMessageMediaPlayer Class Reference

#import <ThingSmartCameraMessageMediaPlayer.h>

Inheritance diagram for ThingSmartCameraMessageMediaPlayer:

Instance Methods

(instancetype) - initWithDeviceId:
 
(UIView< ThingSmartVideoViewType > *) - videoView
 
(void) - playMessage:attachmentType:success:failure:finished:
 
(void) - playMessageAttachment:type:success:failure:finished:
 
(void) - playMessageAttachment:type:startTime:success:failure:finished:
 
(int) - pausePlay:
 
(int) - resumePlay:
 
(int) - stopPlay:
 
(void) - enableMute:success:failure:
 
(instancetype) - initWithDeviceId:
 
(UIView< ThingSmartVideoViewType > *) - videoView
 
(void) - playMessage:attachmentType:success:failure:finished:
 
(void) - playMessageAttachment:type:success:failure:finished:
 
(void) - playMessageAttachment:type:startTime:success:failure:finished:
 
(int) - pausePlay:
 
(int) - resumePlay:
 
(int) - stopPlay:
 
(void) - enableMute:success:failure:
 
(void) - convertMJPEGVideoIntoImagesWithVideoPath:success:failure:
 
(int) - cancelMJPEGVideoConvert
 
(int) - setDeviceFeatures:
 
(void) - convertMJPEGVideoIntoImagesWithVideoPath:success:failure:
 
(int) - cancelMJPEGVideoConvert
 
(int) - setDeviceFeatures:
 

Properties

id< ThingSmartCameraMessageMediaPlayerDelegatedelegate
 
CGSize videoStretchSize
 

Detailed Description

Definition at line 22 of file ThingSmartCameraMessageMediaPlayer.h.

Method Documentation

◆ cancelMJPEGVideoConvert [1/2]

- (int) cancelMJPEGVideoConvert

cancel convert MJPEG video into images

◆ cancelMJPEGVideoConvert [2/2]

- (int) cancelMJPEGVideoConvert

cancel convert MJPEG video into images

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

- (void) convertMJPEGVideoIntoImagesWithVideoPath: (NSString *)  videoPath
success: (void(^)(NSArray *imageFiles))  successCallback
failure: (void(^)(int errCode))  failureCallback 

convert MJPEG video into image files

Parameters
videoPathvideo path from message model.
successCallbacksuccess call back. the element of imageFiles is NSDictionary

"timestamp": 111111111, @"filename": 111111111.jpg, @"filepath": temp/videoname/11111111.jpg }

Parameters
failureCallbackfailed call back.

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

- (void) convertMJPEGVideoIntoImagesWithVideoPath: (NSString *)  videoPath
success: (void(^)(NSArray *imageFiles))  successCallback
failure: (void(^)(int errCode))  failureCallback 

convert MJPEG video into image files

Parameters
videoPathvideo path from message model.
successCallbacksuccess call back. the element of imageFiles is NSDictionary

"timestamp": 111111111, @"filename": 111111111.jpg, @"filepath": temp/videoname/11111111.jpg }

Parameters
failureCallbackfailed call back.

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

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

- (void) 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.

◆ initWithDeviceId: [1/2]

- (instancetype) initWithDeviceId: (NSString *)  devId

◆ initWithDeviceId: [2/2]

- (instancetype) initWithDeviceId: (NSString *)  devId

◆ pausePlay: [1/2]

- (int) pausePlay: (ThingCameraMessageAttachmentType)  attachmentType

[^en] pause play attachment [$en]

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

Returns
error code

◆ pausePlay: [2/2]

- (int) pausePlay: (ThingCameraMessageAttachmentType)  attachmentType

[^en] pause play attachment [$en]

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

Returns
error code

◆ playMessage:attachmentType:success:failure:finished: [1/2]

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

Parameters
messageModel[^en]message model[$en] [^zh]消息模型[$zh]
attachmentType[^en]attachment type[$en] [^zh]附件类型[$zh]
successsuccess callback
failurefailure callback
onFinishfinish callback

◆ playMessage:attachmentType:success:failure:finished: [2/2]

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

Parameters
messageModel[^en]message model[$en] [^zh]消息模型[$zh]
attachmentType[^en]attachment type[$en] [^zh]附件类型[$zh]
successsuccess callback
failurefailure callback
onFinishfinish callback

◆ playMessageAttachment:type:startTime:success:failure:finished: [1/2]

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

Parameters
attachmentPath[^en]attachment path[$en] [^zh]附件地址[$zh]
attachmentType[^en]attachment type[$en] [^zh]附件类型[$zh]
startTime[^en]start time to play[$en] [^zh]开始播放的时间点[$zh]
successsuccess callback
failurefailure callback
onFinishfinish callback

◆ playMessageAttachment:type:startTime:success:failure:finished: [2/2]

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

Parameters
attachmentPath[^en]attachment path[$en] [^zh]附件地址[$zh]
attachmentType[^en]attachment type[$en] [^zh]附件类型[$zh]
startTime[^en]start time to play[$en] [^zh]开始播放的时间点[$zh]
successsuccess callback
failurefailure callback
onFinishfinish callback

◆ playMessageAttachment:type:success:failure:finished: [1/2]

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

Parameters
attachmentPath[^en]attachment path[$en] [^zh]附件地址[$zh]
attachmentType[^en]attachment type[$en] [^zh]附件类型[$zh]
successsuccess callback
failurefailure callback
onFinishfinish callback

◆ playMessageAttachment:type:success:failure:finished: [2/2]

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

Parameters
attachmentPath[^en]attachment path[$en] [^zh]附件地址[$zh]
attachmentType[^en]attachment type[$en] [^zh]附件类型[$zh]
successsuccess callback
failurefailure callback
onFinishfinish callback

◆ resumePlay: [1/2]

- (int) resumePlay: (ThingCameraMessageAttachmentType)  attachmentType

[^en] resume play attachment [$en]

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

Returns
error code

◆ resumePlay: [2/2]

- (int) resumePlay: (ThingCameraMessageAttachmentType)  attachmentType

[^en] resume play attachment [$en]

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

Returns
error code

◆ setDeviceFeatures: [1/2]

- (int) setDeviceFeatures: (NSDictionary *)  features

◆ setDeviceFeatures: [2/2]

- (int) setDeviceFeatures: (NSDictionary *)  features

◆ stopPlay: [1/2]

- (int) stopPlay: (ThingCameraMessageAttachmentType)  attachmentType

[^en] stop play attachment [$en]

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

Returns
error code

◆ stopPlay: [2/2]

- (int) stopPlay: (ThingCameraMessageAttachmentType)  attachmentType

[^en] stop play attachment [$en]

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

Returns
error code

◆ 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

◆ delegate

- (id< ThingSmartCameraMessageMediaPlayerDelegate >) delegate
readwritenonatomicweak

Definition at line 24 of file ThingSmartCameraMessageMediaPlayer.h.

◆ videoStretchSize

- (CGSize) videoStretchSize
readwritenonatomicassign

Definition at line 26 of file ThingSmartCameraMessageMediaPlayer.h.


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