美摄SDK For iOS
3.14.0
|
实时拍摄预览窗口 更多...
#import <NvsLiveWindow.h>
构造函数 | |
(instancetype) | - init |
(instancetype) | - initWithFrame: |
(instancetype) | - initWithCoder: |
(CGPoint) | - mapCanonicalToView: |
时间线坐标转换成视图坐标 更多... | |
(CGPoint) | - mapViewToCanonical: |
视图坐标转换成时间线坐标 更多... | |
(CGPoint) | - mapNormalizedToView: |
归一化坐标转换成视图坐标 更多... | |
(CGPoint) | - mapViewToNormalized: |
视图坐标转换成归一化坐标 更多... | |
(void) | - clearVideoFrame |
清除LiveWindow的视频帧 更多... | |
(UIImage *) | - takeScreenShot |
截屏 更多... | |
(void) | - setBackgroundColorWithRed:green:blue: |
设置LiveWindow的背景色 更多... | |
(void) | - setBackgroundColorWithRed:green:blue:alpha: |
设置LiveWindow的背景色,需要将view的背景色设置为clear配合使用。 更多... | |
属性 | |
id< NvsLiveWindowDrawDelegate > | delegate |
NvsLiveWindowFillMode | fillMode |
LiveWindow的填充模式 更多... | |
NvsLiveWindowHDRDisplayMode | hdrDisplayMode |
LiveWindow的HDR显示模式 更多... | |
实时拍摄预览窗口
在拍摄视频时,将实时预览窗口与采集预览连接,对拍摄场景进行实时预览。完成拍摄后,将实时预览窗口与创建的时间线(Time Line)连接,对已完成拍摄的视频根据需要进行编辑,然后生成视频输出.mov格式的文件。
- (void) clearVideoFrame |
清除LiveWindow的视频帧
- (instancetype) init |
- (instancetype) initWithCoder: | (NSCoder *) | aDecoder |
- (instancetype) initWithFrame: | (CGRect) | frame |
- (CGPoint) mapCanonicalToView: | (CGPoint) | ptCanonical |
- (CGPoint) mapNormalizedToView: | (CGPoint) | ptNormalized |
- (CGPoint) mapViewToCanonical: | (CGPoint) | ptView |
- (CGPoint) mapViewToNormalized: | (CGPoint) | ptView |
- (void) setBackgroundColorWithRed: | (float) | red | |
green: | (float) | green | |
blue: | (float) | blue | |
设置LiveWindow的背景色
red | red值(0~1) |
green | green值(0~1) |
blue | blue值(0~1) |
- (void) setBackgroundColorWithRed: | (float) | red | |
green: | (float) | green | |
blue: | (float) | blue | |
alpha: | (float) | alpha | |
设置LiveWindow的背景色,需要将view的背景色设置为clear配合使用。
red | red值(0~1) |
green | green值(0~1) |
blue | blue值(0~1) |
alpha | alpha值(0~1) |
- (UIImage*) takeScreenShot |
截屏
|
readwritenonatomicweak |
|
readwritenonatomicassign |
LiveWindow的填充模式
|
readwritenonatomicassign |
LiveWindow的HDR显示模式