aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/+video-studio/edit/video-studio-edit.component.html
blob: fe74062d2cd50b00ece693c183ccb0f7c99b3efb (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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
<div class="margin-content">
  <h1 class="title-page" i18n>Studio for {{ video.name }}</h1>

  <div class="columns">
    <form role="form" [formGroup]="form">

      <div class="section cut" formGroupName="cut">
        <h2 i18n>CUT VIDEO</h2>

        <div i18n class="description">Set a new start/end.</div>

        <div class="form-group">
          <label i18n for="cutStart">New start</label>
          <my-timestamp-input inputName="cutStart" [disableBorder]="false" [maxTimestamp]="video.duration" formControlName="start"></my-timestamp-input>
        </div>

        <div class="form-group">
          <label i18n for="cutEnd">New end</label>
          <my-timestamp-input inputName="cutEnd" [disableBorder]="false" [maxTimestamp]="video.duration" formControlName="end"></my-timestamp-input>
        </div>
      </div>

      <div class="section" formGroupName="add-intro">
        <h2 i18n>ADD INTRO</h2>

        <div i18n class="description">Concatenate a file at the beginning of the video.</div>

        <div class="form-group">
          <my-reactive-file
            formControlName="file" inputName="addIntroFile" i18n-inputLabel inputLabel="Select the intro video file"
            [extensions]="videoExtensions" [displayFilename]="true" [displayReset]="true"
            [buttonTooltip]="getIntroOutroTooltip()"
          ></my-reactive-file>
        </div>
      </div>

      <div class="section" formGroupName="add-outro">
        <h2 i18n>ADD OUTRO</h2>

        <div i18n class="description">Concatenate a file at the end of the video.</div>

        <div class="form-group">
          <my-reactive-file
            formControlName="file" inputName="addOutroFile" i18n-inputLabel inputLabel="Select the outro video file"
            [extensions]="videoExtensions" [displayFilename]="true" [displayReset]="true"
            [buttonTooltip]="getIntroOutroTooltip()"
          ></my-reactive-file>
        </div>
      </div>

      <div class="section" formGroupName="add-watermark">
        <h2 i18n>ADD WATERMARK</h2>

        <div i18n class="description">Add a watermark image to the video.</div>

        <div class="form-group">
          <my-reactive-file
            formControlName="file" inputName="addWatermarkFile" i18n-inputLabel inputLabel="Select watermark image file"
            [extensions]="imageExtensions" [displayFilename]="true" [displayReset]="true"
            [buttonTooltip]="getWatermarkTooltip()"
          ></my-reactive-file>
        </div>
      </div>

      <my-button
        className="orange-button" i18n-label label="Run video edition" icon="circle-tick"
        (click)="runEdition()" (keydown.enter)="runEdition()"
        [disabled]="!form.valid || isRunningEdition || noEdition()"
      ></my-button>
    </form>


    <div class="information">
      <div>
        <label i18n>Video before edition</label>
        <my-embed [video]="video"></my-embed>
      </div>

      <div *ngIf="!noEdition()">
        <label i18n>Edition tasks:</label>

        <ol>
          <li *ngFor="let task of getTasksSummary()">{{ task }}</li>
        </ol>
      </div>
    </div>
  </div>
</div>