From 89aa3331106874266f6feeee7bff852da2c1727e Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Fri, 28 Jul 2023 11:07:03 +0200 Subject: [PATCH] Add ability to force transcoding --- .../overview/videos/video-list.component.ts | 6 +-- .../shared/shared-main/video/video.model.ts | 7 ++- .../shared/shared-main/video/video.service.ts | 52 ++++++++++++++++--- .../video-actions-dropdown.component.ts | 12 ++--- server/controllers/api/videos/transcoding.ts | 3 ++ .../validators/videos/video-transcoding.ts | 13 ++++- server/tests/api/check-params/transcoding.ts | 6 ++- .../models/server/server-error-code.enum.ts | 4 +- .../video-transcoding-create.model.ts | 2 + .../server-commands/videos/videos-command.ts | 7 +-- support/doc/api/openapi.yaml | 4 ++ 11 files changed, 88 insertions(+), 28 deletions(-) diff --git a/client/src/app/+admin/overview/videos/video-list.component.ts b/client/src/app/+admin/overview/videos/video-list.component.ts index 52f02d8d0..2792a2d8a 100644 --- a/client/src/app/+admin/overview/videos/video-list.component.ts +++ b/client/src/app/+admin/overview/videos/video-list.component.ts @@ -3,7 +3,7 @@ import { finalize } from 'rxjs/operators' import { Component, OnInit, ViewChild } from '@angular/core' import { ActivatedRoute, Router } from '@angular/router' import { AuthService, ConfirmService, Notifier, RestPagination, RestTable } from '@app/core' -import { formatICU } from '@app/helpers' +import { formatICU, getAbsoluteAPIUrl } from '@app/helpers' import { AdvancedInputFilter } from '@app/shared/shared-forms' import { DropdownAction, Video, VideoService } from '@app/shared/shared-main' import { VideoBlockComponent, VideoBlockService } from '@app/shared/shared-moderation' @@ -166,7 +166,7 @@ export class VideoListComponent extends RestTable