更新时间 : 2021-11-16 10:42:25
示例代码
SXTemplate *sxTemplate = [[SXTemplate alloc] init:@"Your template path" type:SXTemplateUsageRender];
[sxTemplate setReplaceableFilePaths:@[@"asset path"]];
//渲染器
SXTemplateRender *render = [[SXTemplateRender alloc] initWithTemplate:sxTemplate audioPath:@"audio path"];
render.delegate = self;
[sxTemplate commit];
//开始渲染导出视频
[render start];
示例代码
SXTemplate *sxTemplate = [[SXTemplate alloc] init:@"Your template path" type:SXTemplateUsageRender];
[sxTemplate setReplaceableFilePaths:@[@"asset path"]];
//渲染器
SXTemplateRender *render = [[SXTemplateRender alloc] initWithTemplate:sxTemplate audioPath:@"audio path"];
render.delegate = self;
[sxTemplate commit];
//开始渲染导出视频
[render start];