lil fix + add flush queue feat
All checks were successful
ci / Image build (push) Successful in 2m14s
ci / Deployment (push) Successful in 6s

This commit is contained in:
Joris Bertomeu
2025-08-25 14:34:33 +02:00
parent 2c051cef25
commit 3ee069c876
4 changed files with 19 additions and 32 deletions

View File

@@ -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() {