Add web optimization for video files during processing
This commit is contained in:
parent
6d4860bb78
commit
7cba9c11d4
2 changed files with 67 additions and 1 deletions
|
|
@ -159,6 +159,10 @@ export class DriveService {
|
|||
// thunbnail, webpublic を必要なら生成
|
||||
const alts = await this.generateAlts(path, type, !file.uri);
|
||||
|
||||
if (type && type.startsWith('video/')) {
|
||||
await this.videoProcessingService.webOptimizeVideo(path, type);
|
||||
}
|
||||
|
||||
if (this.meta.useObjectStorage) {
|
||||
//#region ObjectStorage params
|
||||
let [ext] = (name.match(/\.([a-zA-Z0-9_-]+)$/) ?? ['']);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue