You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

21 lines
1.2 KiB

<h2 mat-dialog-title>{{status.done?"Файл успешно преобразован":"Подождите, перекодировка файла"}}</h2>
<mat-dialog-content>
<mat-spinner *ngIf="loading"></mat-spinner>
<ng-container *ngIf="!loading && !status.done">
<p>Прогресс загрузки h264x {{status.h264}} %</p>
<mat-progress-bar [mode]="'determinate'" [value]="status.h264"></mat-progress-bar>
<p>Прогресс загрузки avi {{status.avi}} %</p>
<mat-progress-bar [mode]="'determinate'" [value]="status.avi"></mat-progress-bar>
<p>Прогресс загрузки avi {{status.mp4}} %</p>
<mat-progress-bar [mode]="'determinate'" [value]="status.mp4"></mat-progress-bar>
</ng-container>
<ng-container *ngIf="!loading && status.done">
<video controls>
<source [src]="'api/transcode/download?b64=' + status.b64" type="video/mp4"/>
</video>
</ng-container>
</mat-dialog-content>
<mat-dialog-actions>
<button mat-button (click)="close()">Закрыть</button>
<button mat-button *ngIf="!loading && status.done" (click)="getMP4(status.b64)">Скачать MP4 ({{baseUtils.getFancySize(status.outSize)}})</button>
</mat-dialog-actions>