aboutsummaryrefslogtreecommitdiffhomepage
path: root/shared/models/videos/editor/video-editor-create-edit.model.ts
blob: 36b7c8d552538ade9960fba57c6d84aa8aaca345 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
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
  }
}