All files / src/app/components/videos videos.component.html

100% Statements 23/23
100% Branches 6/6
100% Functions 2/2
100% Lines 15/15

Press n or j to go to the next uncovered block, b, p or k for the previous block.

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 30375x 4x     750x       4x 538x   273x   269x   4x     4x 4x 542x   127x 126x 1x     4x    
@if (isLoading) {
  <app-loader></app-loader>
}
 
@if (!isLoading) {
  <div>
    <div class="toolbar">
      <div>
        <p-multiSelect class="videos-select"
          [options]="videos"
          optionLabel="name"
          [(ngModel)]="selectedVideos"
          [filter]="true"
          [filterMatchMode]="'contains'"
          placeholder="Select one or multiple videos"
          (onChange)="onChangeSelection($event.value)"
          />
      </div>
    </div>
    <div #videoContainer>
      @for (video of selectedVideos; track video) {
        <div>
          <h2>{{ video.name }}</h2>
          <video [id]="'video-'+video.id" class="video-js vjs-default-skin" width="50%" controls muted ></video>
        </div>
      }
    </div>
  </div>
}