美摄SDK For iOS
3.14.0
|
采集复合字幕 更多...
#import <NvsCaptureCompoundCaption.h>
属性 | |
int64_t | offsetPoint |
获取字幕的相对偏移时间 更多... | |
int64_t | duration |
字幕在时间线显示上的出点 更多... | |
![]() | |
NSString * | captionStylePackageId |
字幕样式包裹ID 更多... | |
NSInteger | captionCount |
获取该复合字幕中子字幕的数量 更多... | |
![]() | |
NvsFxDescription * | description |
特效描述 更多... | |
采集复合字幕
复合字幕是应用在视频采集时的组合型文字,每个复合字幕包含若干个子字幕。在采集时,可以添加和移除时间线复合字幕,并对字幕位置进行调整处理,还可以对字体,颜色属性进行修改。
注:复合字幕的偏移时间和持续时间单位都为微秒
注1:复合字幕的默认开始时间为添加时刻的采集时间,如果在StartCapturePreview调用之前添加的,起始时间都为0
- (int64_t) changeDuration: | (int64_t) | newOutPoint |
改变字幕持续时间
newOutPoint | 字幕新的期望持续时间(单位微秒) |
- (int64_t) changeOffsetPoint: | (int64_t) | newOffset |
改变字幕的相对偏移时间
newInPoint | 新的相对偏移时间(单位微秒) |
- (void) resetStartTime |
重置字幕的起始时间
- (void) setStartTime: | (int64_t) | startTime |
设置字幕的起始时间
startTime | 起始时间 |
|
readatomicassign |
|
readatomicassign |
获取字幕的相对偏移时间