diff options
| author | tamaina <tamaina@hotmail.co.jp> | 2023-02-12 09:13:47 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-02-12 09:13:47 +0900 |
| commit | ee03ab8d2c06254480e8b78d3c4eab4a78409ad5 (patch) | |
| tree | a781c4db880b793a2bd6202b48c0b8754515f213 /packages/backend/src/core/DriveService.ts | |
| parent | Dev Containerの設定を追加 (#9872) (diff) | |
| download | sharkey-ee03ab8d2c06254480e8b78d3c4eab4a78409ad5.tar.gz sharkey-ee03ab8d2c06254480e8b78d3c4eab4a78409ad5.tar.bz2 sharkey-ee03ab8d2c06254480e8b78d3c4eab4a78409ad5.zip | |
enhance(server): videoThumbnailGenerator config (#9845)
* enhance(server): videoThumbnailGenerator config
* :v:
* fix
* 相対url
* サムネイルのproxyRemoteFilesは直接プロキシを指定する
* メディアプロキシ
Diffstat (limited to 'packages/backend/src/core/DriveService.ts')
| -rw-r--r-- | packages/backend/src/core/DriveService.ts | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/packages/backend/src/core/DriveService.ts b/packages/backend/src/core/DriveService.ts index 598a457e83..42a430ea75 100644 --- a/packages/backend/src/core/DriveService.ts +++ b/packages/backend/src/core/DriveService.ts @@ -250,6 +250,14 @@ export class DriveService { @bindThis public async generateAlts(path: string, type: string, generateWeb: boolean) { if (type.startsWith('video/')) { + if (this.config.videoThumbnailGenerator != null) { + // videoThumbnailGeneratorが指定されていたら動画サムネイル生成はスキップ + return { + webpublic: null, + thumbnail: null, + } + } + try { const thumbnail = await this.videoProcessingService.generateVideoThumbnail(path); return { |