From 583eb04b541175035d6d452ca626a96ebf2b7437 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Fri, 26 Jun 2020 08:37:26 +0200 Subject: Upgrade to angular 10 --- .../app/shared/shared-video-miniature/video-download.component.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'client/src/app/shared/shared-video-miniature/video-download.component.ts') diff --git a/client/src/app/shared/shared-video-miniature/video-download.component.ts b/client/src/app/shared/shared-video-miniature/video-download.component.ts index 21df8b674..4fd06eacf 100644 --- a/client/src/app/shared/shared-video-miniature/video-download.component.ts +++ b/client/src/app/shared/shared-video-miniature/video-download.component.ts @@ -1,4 +1,3 @@ -import { FfprobeFormat, FfprobeStream } from 'fluent-ffmpeg' import { mapValues, pick } from 'lodash-es' import { BytesPipe } from 'ngx-pipes' import { Component, ElementRef, ViewChild } from '@angular/core' @@ -144,7 +143,7 @@ export class VideoDownloadComponent { this.type = type } - getMetadataFormat (format: FfprobeFormat) { + getMetadataFormat (format: any) { const keyToTranslateFunction = { 'encoder': (value: string) => ({ label: this.i18n('Encoder'), value }), 'format_long_name': (value: string) => ({ label: this.i18n('Format name'), value }), @@ -165,7 +164,7 @@ export class VideoDownloadComponent { ) } - getMetadataStream (streams: FfprobeStream[], type: 'video' | 'audio') { + getMetadataStream (streams: any[], type: 'video' | 'audio') { const stream = streams.find(s => s.codec_type === type) if (!stream) return undefined @@ -201,6 +200,7 @@ export class VideoDownloadComponent { private hydrateMetadataFromMetadataUrl (file: VideoFile) { const observable = this.videoService.getVideoFileMetadata(file.metadataUrl) observable.subscribe(res => file.metadata = res) + return observable.toPromise() } } -- cgit v1.2.3