美摄SDK For iOS
3.14.0
|
片段字幕 更多...
#import <NvsClipCaption.h>
属性 | |
int64_t | inPoint |
字幕在时间线上显示的入点(单位微秒)以当前片段的时间为基准,片段的起始时间为开始时间 更多... | |
int64_t | outPoint |
字幕在时间线显示上的出点(单位微秒)以当前片段的时间为基准,片段的起始时间为开始时间 更多... | |
![]() | |
BOOL | isPanoramic |
是否为全景图字幕 更多... | |
BOOL | isModular |
当前字幕是否为模块字幕 更多... | |
NvsRoleInTheme | roleInTheme |
字幕在主题中的角色(通用、片头、片尾) 更多... | |
NvsCategory | category |
片段类型 更多... | |
NSString * | captionStylePackageId |
字幕样式包裹ID 更多... | |
NSString * | modularCaptionContextPackageId |
模块字幕环境样式包裹ID 更多... | |
NSString * | modularCaptionRendererPackageId |
模块字幕渲染样式包裹ID 更多... | |
NSString * | modularCaptionAnimationPackageId |
模块字幕循环动画样式包裹ID 更多... | |
NSString * | modularCaptionInAnimationPackageId |
模块字幕入动画样式包裹ID 更多... | |
NSString * | modularCaptionOutAnimationPackageId |
模块字幕出动画样式包裹ID 更多... | |
![]() | |
NvsFxDescription * | description |
特效描述 更多... | |
片段字幕
片段字幕是视频上叠加的自定义文字。编辑视频时,可以添加和移除片段字幕,并对字幕位置进行调整处理。添加完字幕,还可以进行样式设置,包括字体大小,颜色,阴影,描边等。
- (int64_t) changeInPoint: | (int64_t) | newInPoint |
改变字幕在片段上显示的入点,以当前片段的时间为基准,片段的起始时间为开始时间
newInPoint | 字幕在片段上的新的入点(单位微秒) |
- (int64_t) changeOutPoint: | (int64_t) | newOutPoint |
改变字幕在片段上显示的出点,以当前片段的时间为基准,片段的起始时间为开始时间
newOutPoint | 字幕在时间线上的新的出点(单位微秒) |
- (bool) getAbsoluteTimeUsed |
获取字幕入出点是否为绝对时间。
- (void) movePosition: | (int64_t) | offset |
改变字幕在片段上的显示位置(入点和出点同时偏移offset值),以当前片段的时间为基准,片段的起始时间为开始时间
offset | 入点和出点改变的偏移值(单位微秒), -1表示铺满整个片段 |
- (void) setAbsoluteTimeUsed: | (bool) | enable |
设置字幕入出点为绝对时间。
enable | 检测开关 |
|
readatomicassign |
字幕在时间线上显示的入点(单位微秒)以当前片段的时间为基准,片段的起始时间为开始时间
|
readatomicassign |
字幕在时间线显示上的出点(单位微秒)以当前片段的时间为基准,片段的起始时间为开始时间