mirror of
https://github.com/xuthus83/pigallery2.git
synced 2025-01-14 14:43:17 +08:00
make path optional
This commit is contained in:
parent
f838697ae7
commit
7dc2a8a2ef
@ -2,7 +2,7 @@ import {FfmpegCommand} from 'fluent-ffmpeg';
|
||||
|
||||
/* eslint-disable @typescript-eslint/no-var-requires */
|
||||
export class FFmpegFactory {
|
||||
public static get(): (path: string) => FfmpegCommand {
|
||||
public static get(): (path?: string) => FfmpegCommand {
|
||||
const ffmpeg = require('fluent-ffmpeg');
|
||||
try {
|
||||
const ffmpegPath = require('ffmpeg-static');
|
||||
|
Loading…
x
Reference in New Issue
Block a user