AliyunAETemplate

@interface AliyunAETemplate : NSObject

AE模板 API_AVAILABLE(3.35.0)

  • 初始化模板,打开一个已有模板素材

    Declaration

    Objective-C

    - (nonnull instancetype)initWithPath:(nonnull NSString *)path;

    Parameters

    path

    模板素材文件夹路径

    Return Value

    AliyunAETemplate

  • 模板文件夹路径

    Declaration

    Objective-C

    @property (nonatomic, copy, readonly) NSString *_Nonnull path;
  • 模板输出分辨率

    Declaration

    Objective-C

    @property (nonatomic, readonly) CGSize outputSize;
  • 模板中可替换素材列表

    Declaration

    Objective-C

    @property (nonatomic, copy, readonly) NSArray<AliyunAETemplateAsset *> *_Nonnull replaceableAssets;
  • 模板背景音乐路径

    Declaration

    Objective-C

    @property (nonatomic, copy, readonly) NSString *_Nonnull musicPath;
  • 替换的背景音乐路径,AliyunAETemplateEditor::replaceAudio:调用成功后可在获取

    Declaration

    Objective-C

    @property (nonatomic, copy, readonly) NSString *_Nonnull replacedMusicPath;
  • 获取指定素材在当前预览中的顶点信息

    Declaration

    Objective-C

    - (nonnull NSArray<AliyunAETemplateAssetVertexs *> *)fetchAssetDrawingVertexs:
        (nonnull AliyunAETemplateAsset *)asset;

    Parameters

    asset

    指定素材

    Return Value

    多个顶点数组,可能在画幅中出现多个位置