PeerTube/shared/models/videos/editor/video-editor-create-edit.mo...

43 lines
636 B
TypeScript
Raw Normal View History

2022-02-11 09:51:33 +00:00
export interface VideoEditorCreateEdition {
tasks: VideoEditorTask[]
}
export type VideoEditorTask =
VideoEditorTaskCut |
VideoEditorTaskIntro |
VideoEditorTaskOutro |
VideoEditorTaskWatermark
export interface VideoEditorTaskCut {
name: 'cut'
options: {
start?: number
end?: number
}
}
export interface VideoEditorTaskIntro {
name: 'add-intro'
options: {
file: Blob | string
}
}
export interface VideoEditorTaskOutro {
name: 'add-outro'
options: {
file: Blob | string
}
}
export interface VideoEditorTaskWatermark {
name: 'add-watermark'
options: {
file: Blob | string
}
}