Commit c56a9314 by Natalia

Add loading video spinner

parent 95aa6145
...@@ -2,6 +2,9 @@ ...@@ -2,6 +2,9 @@
<div class="video-details" *ngIf="(videoId$ | async) as videoId; else noIdContainer"> <div class="video-details" *ngIf="(videoId$ | async) as videoId; else noIdContainer">
<h1 [class.display-none]="!videoLoaded">Moment from meeting with Two Pillars</h1> <h1 [class.display-none]="!videoLoaded">Moment from meeting with Two Pillars</h1>
<div *ngIf="!videoLoaded">
<mat-spinner></mat-spinner>
</div>
<div class="video-container" #player [class.display-none]="!videoLoaded"> <div class="video-container" #player [class.display-none]="!videoLoaded">
<video #video class="video" [attr.src]="'https://static.chorus.ai/api/' + videoId + '.mp4'" preload="auto"> <video #video class="video" [attr.src]="'https://static.chorus.ai/api/' + videoId + '.mp4'" preload="auto">
This browser does not support HTML5 video. This browser does not support HTML5 video.
...@@ -16,7 +19,7 @@ ...@@ -16,7 +19,7 @@
</div> </div>
<div *ngIf="(loading$ | async)"> <div *ngIf="(loading$ | async)">
<mat-progress-spinner></mat-progress-spinner> <mat-spinner></mat-spinner>
</div> </div>
<div class="transcript-container" *ngIf="!(loading$ | async) && (transcript$ | async) as transcript"> <div class="transcript-container" *ngIf="!(loading$ | async) && (transcript$ | async) as transcript">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment