Tuya iOS Smart Life App SDK 5.15.0
ThingSmartMediaVideoView Class Reference

#import <ThingSmartMediaVideoView.h>

Inheritance diagram for ThingSmartMediaVideoView:
<ThingSmartVideoViewType> <ThingSmartVideoViewType> ThingSmartEAGLView ThingSmartEAGLView

Instance Methods

(void) - startPlay
 
(void) - stopPlay
 
(void) - thing_setScaled:
 
(void) - thing_setOffset:
 
(void) - thing_setRotate:
 
(void) - thing_clear
 
(UIImage *) - screenshot
 
(void) - displayPixelBuffer:
 
(void) - displayPixelBuffer:featureRect:
 
(void) - enableFeatureTracking:animated:
 
(void) - startPlay
 
(void) - stopPlay
 
(void) - thing_setScaled:
 
(void) - thing_setOffset:
 
(void) - thing_setRotate:
 
(void) - thing_clear
 
(UIImage *) - screenshot
 
(void) - displayPixelBuffer:
 
(void) - displayPixelBuffer:featureRect:
 
(void) - enableFeatureTracking:animated:
 
- Instance Methods inherited from <ThingSmartVideoViewType>
(void) - thing_setScaled:
 
(void) - thing_setOffset:
 
(void) - thing_clear
 
(UIImage *) - screenshot
 
(void) - startPlay
 
(void) - stopPlay
 
(void) - displayPixelBuffer:
 
(void) - displayPixelBuffer:featureRect:
 
(void) - thing_setRotate:
 
(void) - enableFeatureTracking:animated:
 
(void) - thing_setStretchSize:
 
(void) - thing_setScaled:
 
(void) - thing_setOffset:
 
(void) - thing_clear
 
(UIImage *) - screenshot
 
(void) - startPlay
 
(void) - stopPlay
 
(void) - displayPixelBuffer:
 
(void) - displayPixelBuffer:featureRect:
 
(void) - thing_setRotate:
 
(void) - enableFeatureTracking:animated:
 
(void) - thing_setStretchSize:
 

Class Methods

(void) + configurateGlobalBackgroundWrappedHandler:
 
(void) + configurateGlobalBackgroundWrappedHandler:
 

Properties

ThingVideoViewBackgroundWrappedHandler backgroundWrappedHandler
 
BOOL scaleToFill
 
BOOL enableFeatureTracking
 
- Properties inherited from <ThingSmartVideoViewType>
BOOL scaleToFill
 

Detailed Description

Definition at line 19 of file ThingSmartMediaVideoView.h.

Method Documentation

◆ configurateGlobalBackgroundWrappedHandler: [1/2]

+ (void) configurateGlobalBackgroundWrappedHandler: (nullable ThingVideoViewBackgroundWrappedHandler backgroundWrappedHandler

◆ configurateGlobalBackgroundWrappedHandler: [2/2]

+ (void) configurateGlobalBackgroundWrappedHandler: (nullable ThingVideoViewBackgroundWrappedHandler backgroundWrappedHandler

◆ displayPixelBuffer: [1/2]

- (void) displayPixelBuffer: (CVPixelBufferRef)  pixelBuffer

Render YUV

Reimplemented from <ThingSmartVideoViewType>.

◆ displayPixelBuffer: [2/2]

- (void) displayPixelBuffer: (CVPixelBufferRef)  pixelBuffer

Render YUV

Reimplemented from <ThingSmartVideoViewType>.

◆ displayPixelBuffer:featureRect: [1/2]

- (void) displayPixelBuffer: (CVPixelBufferRef)  pixelBuffer
featureRect: (CGRect)  rect 

Reimplemented from <ThingSmartVideoViewType>.

◆ displayPixelBuffer:featureRect: [2/2]

- (void) displayPixelBuffer: (CVPixelBufferRef)  pixelBuffer
featureRect: (CGRect)  rect 

Reimplemented from <ThingSmartVideoViewType>.

◆ enableFeatureTracking:animated: [1/2]

- (void) enableFeatureTracking: (BOOL)  enabled
animated: (BOOL)  animated 

Reimplemented from <ThingSmartVideoViewType>.

◆ enableFeatureTracking:animated: [2/2]

- (void) enableFeatureTracking: (BOOL)  enabled
animated: (BOOL)  animated 

Reimplemented from <ThingSmartVideoViewType>.

◆ screenshot [1/2]

- (UIImage *) screenshot

[^en] get a screenshot from current video frame [$en]

[^zh] 从当前视频帧获取截图 [$zh]

Returns
[^en]screenshot image[$en] [^zh]视频截图[$zh]

Reimplemented from <ThingSmartVideoViewType>.

◆ screenshot [2/2]

- (UIImage *) screenshot

[^en] get a screenshot from current video frame [$en]

[^zh] 从当前视频帧获取截图 [$zh]

Returns
[^en]screenshot image[$en] [^zh]视频截图[$zh]

Reimplemented from <ThingSmartVideoViewType>.

◆ startPlay [1/2]

- (void) startPlay

Reimplemented from <ThingSmartVideoViewType>.

◆ startPlay [2/2]

- (void) startPlay

Reimplemented from <ThingSmartVideoViewType>.

◆ stopPlay [1/2]

- (void) stopPlay

Reimplemented from <ThingSmartVideoViewType>.

◆ stopPlay [2/2]

- (void) stopPlay

Reimplemented from <ThingSmartVideoViewType>.

◆ thing_clear [1/2]

- (void) thing_clear

[^en] clear video content, and reset scale and offset [$en]

[^zh] 清空视频内容,重置 scale 和 offset [$zh]

Reimplemented from <ThingSmartVideoViewType>.

◆ thing_clear [2/2]

- (void) thing_clear

[^en] clear video content, and reset scale and offset [$en]

[^zh] 清空视频内容,重置 scale 和 offset [$zh]

Reimplemented from <ThingSmartVideoViewType>.

◆ thing_setOffset: [1/2]

- (void) thing_setOffset: (CGPoint)  offset

[^en] video offset [$en]

[^zh] 视频偏移量 [$zh]

Parameters
offset[^en]offset point[$en] [^zh]视频偏移量[$zh]

Reimplemented from <ThingSmartVideoViewType>.

◆ thing_setOffset: [2/2]

- (void) thing_setOffset: (CGPoint)  offset

[^en] video offset [$en]

[^zh] 视频偏移量 [$zh]

Parameters
offset[^en]offset point[$en] [^zh]视频偏移量[$zh]

Reimplemented from <ThingSmartVideoViewType>.

◆ thing_setRotate: [1/2]

- (void) thing_setRotate: (float)  rotateZ

Reimplemented from <ThingSmartVideoViewType>.

◆ thing_setRotate: [2/2]

- (void) thing_setRotate: (float)  rotateZ

Reimplemented from <ThingSmartVideoViewType>.

◆ thing_setScaled: [1/2]

- (void) thing_setScaled: (float)  scaled

[^en] video scale factory [$en]

[^zh] 视频缩放 [$zh]

Parameters
scaled[^en]scale factory[$en] [^zh]视频缩放[$zh]

Reimplemented from <ThingSmartVideoViewType>.

◆ thing_setScaled: [2/2]

- (void) thing_setScaled: (float)  scaled

[^en] video scale factory [$en]

[^zh] 视频缩放 [$zh]

Parameters
scaled[^en]scale factory[$en] [^zh]视频缩放[$zh]

Reimplemented from <ThingSmartVideoViewType>.

Property Documentation

◆ backgroundWrappedHandler

- (ThingVideoViewBackgroundWrappedHandler) backgroundWrappedHandler
readwritenonatomiccopy

Definition at line 22 of file ThingSmartMediaVideoView.h.

◆ enableFeatureTracking

- (BOOL) enableFeatureTracking
readwritenonatomicassign

Definition at line 26 of file ThingSmartMediaVideoView.h.

◆ scaleToFill

- (BOOL) scaleToFill
readwritenonatomicassign

Definition at line 24 of file ThingSmartMediaVideoView.h.


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