美摄SDK For iOS  3.10.1
属性 | 所有成员列表
NvsTemplateCaptionDesc类 参考

模板资源包里footage对应的字幕信息。如果trackIndex和clipIndex都是-1,表示该字幕是timeline字幕。如果仅clipIndex为-1,表示该字幕是轨道字幕。如果两者都不为-1,表示该字幕是片段字幕 更多...

#import <NvsAssetPackageManager.h>

类 NvsTemplateCaptionDesc 继承关系图:

属性

NSString * replaceId
 字幕的id。ID值等同于getTemplateAttachment(),用到的KEY为TEMPLATE_KEY_REPLACE_ID 更多...
 
NSString * text
 字幕的文字内容 更多...
 
int trackIndex
 轨道字幕的轨道索引,非负表示有效 更多...
 
int clipIndex
 片段字幕的片段索引,非负表示有效 更多...
 
NSArray< NvsTemplateCaptionDesc * > * subCaptions
 序列嵌套的字幕 更多...
 

详细描述

模板资源包里footage对应的字幕信息。如果trackIndex和clipIndex都是-1,表示该字幕是timeline字幕。如果仅clipIndex为-1,表示该字幕是轨道字幕。如果两者都不为-1,表示该字幕是片段字幕

属性说明

◆ clipIndex

- (int) clipIndex
readwritenonatomicassign

片段字幕的片段索引,非负表示有效

◆ replaceId

- (NSString*) replaceId
readwritenonatomicstrong

字幕的id。ID值等同于getTemplateAttachment(),用到的KEY为TEMPLATE_KEY_REPLACE_ID

◆ subCaptions

- (NSArray<NvsTemplateCaptionDesc*>*) subCaptions
readwritenonatomicstrong

序列嵌套的字幕

◆ text

- (NSString*) text
readwritenonatomicstrong

字幕的文字内容

◆ trackIndex

- (int) trackIndex
readwritenonatomicassign

轨道字幕的轨道索引,非负表示有效


该类的文档由以下文件生成: