From 221ee1adc916684d4881d2a9c4c01954dcde986e Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Tue, 9 Nov 2021 11:52:41 +0100 Subject: Add transcoding fail message in client --- .../+video-watch/shared/information/video-alert.component.html | 4 ++++ .../+videos/+video-watch/shared/information/video-alert.component.ts | 4 ++++ 2 files changed, 8 insertions(+) (limited to 'client/src/app/+videos/+video-watch') diff --git a/client/src/app/+videos/+video-watch/shared/information/video-alert.component.html b/client/src/app/+videos/+video-watch/shared/information/video-alert.component.html index 33b5a47a0..6e5d0bcad 100644 --- a/client/src/app/+videos/+video-watch/shared/information/video-alert.component.html +++ b/client/src/app/+videos/+video-watch/shared/information/video-alert.component.html @@ -1,3 +1,7 @@ +
+ Transcoding failed, this video may not work properly. +
+
The video is being imported, it will be available when the import is finished.
diff --git a/client/src/app/+videos/+video-watch/shared/information/video-alert.component.ts b/client/src/app/+videos/+video-watch/shared/information/video-alert.component.ts index 257d463b4..addea53c0 100644 --- a/client/src/app/+videos/+video-watch/shared/information/video-alert.component.ts +++ b/client/src/app/+videos/+video-watch/shared/information/video-alert.component.ts @@ -14,6 +14,10 @@ export class VideoAlertComponent { return this.video && this.video.state.id === VideoState.TO_TRANSCODE } + isVideoTranscodingFailed () { + return this.video && this.video.state.id === VideoState.TRANSCODING_FAILED + } + isVideoToImport () { return this.video && this.video.state.id === VideoState.TO_IMPORT } -- cgit v1.2.3