lil fix + add flush queue feat
This commit is contained in:
@@ -100,6 +100,15 @@ export class AppComponent implements OnInit {
|
||||
});
|
||||
}
|
||||
|
||||
flushQueue() {
|
||||
this.videoProcessingService.flushQueue().subscribe({
|
||||
next: (response) => {
|
||||
},
|
||||
error: (error) => {
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
humanFileSize(size: number) {
|
||||
var i = size == 0 ? 0 : Math.floor(Math.log(size) / Math.log(1024));
|
||||
return +((size / Math.pow(1024, i)).toFixed(2)) * 1 + ' ' + ['bps', 'kbps', 'mbps', 'gbps', 'tbps'][i];
|
||||
@@ -132,7 +141,7 @@ export class AppComponent implements OnInit {
|
||||
displayJobAudio(tracks: any) {
|
||||
if (tracks.length === 0)
|
||||
return 'None';
|
||||
return tracks.map((elem: any) => `${elem.name} (${elem.attributes.CODECS})`).join(' + ');
|
||||
return tracks.map((elem: any) => `${elem.name}${elem.attributes?.CODECS ? ` (${elem.attributes.CODECS || 'N/A'})` : ''}`).join(' + ');
|
||||
}
|
||||
|
||||
onSubmitLoad() {
|
||||
|
||||
Reference in New Issue
Block a user