Skip to content

Commit

Permalink
feat: 支持视频元素
Browse files Browse the repository at this point in the history
  • Loading branch information
Sruimeng committed Mar 26, 2024
1 parent 8c99195 commit 0328ca2
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/image.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,11 @@ export interface TemplateContentV2 extends TemplateContentBase {
content?: StringTemplate,
// 绘制 canvas 的背景图片,替换掉原来的那张图片,如果没有就不替换
background?: {
/**
* 视频'video'/图片'image'
* @since 1.3
*/
type: string,
name: string,
url: string,
},
Expand Down Expand Up @@ -135,8 +140,3 @@ export interface CompressedImage extends Image {
pvrtc?: string,
},
}

export interface VideoImage extends Image {
type: 'video',
loop?: boolean,
}

0 comments on commit 0328ca2

Please sign in to comment.