aboutsummaryrefslogblamecommitdiffhomepage
path: root/shared/models/videos/editor/video-editor-create-edit.model.ts
blob: 36b7c8d552538ade9960fba57c6d84aa8aaca345 (plain) (tree)









































                                           
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
  }
}