File tree 3 files changed +5
-3
lines changed
3 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -29,6 +29,7 @@ class Conf {
29
29
this . copyByDefaultVal ( conf , 'antialias' , false ) ;
30
30
this . copyByDefaultVal ( conf , 'audioLoop' , true ) ;
31
31
this . copyByDefaultVal ( conf , 'ffmpeglog' , false ) ;
32
+ this . copyByDefaultVal ( conf , 'ext' , 'mp4' ) ;
32
33
this . copyByDefaultVal ( conf , 'preset' , 'medium' ) ;
33
34
this . copyByDefaultVal ( conf , 'cacheFormat' , 'raw' ) ;
34
35
this . copyByDefaultVal ( conf , 'cacheQuality' , 80 ) ;
Original file line number Diff line number Diff line change @@ -87,9 +87,10 @@ class FFCreator extends FFCon {
87
87
* @public
88
88
*/
89
89
generateOutput ( ) {
90
- let outputDir = this . getConf ( 'outputDir' ) ;
90
+ const ext = this . getConf ( 'ext' ) ;
91
+ const outputDir = this . getConf ( 'outputDir' ) ;
91
92
if ( this . inCenter && outputDir ) {
92
- this . setOutput ( path . join ( outputDir , `${ Utils . genUuid ( ) } .mp4 ` ) ) ;
93
+ this . setOutput ( path . join ( outputDir , `${ Utils . genUuid ( ) } .${ ext } ` ) ) ;
93
94
}
94
95
}
95
96
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " ffcreator" ,
3
- "version" : " 6.2.2 " ,
3
+ "version" : " 6.2.3 " ,
4
4
"description" : " FFCreator is a lightweight and flexible short video production library" ,
5
5
"main" : " lib/index.js" ,
6
6
"types" : " types/index.d.ts" ,
You can’t perform that action at this time.
0 commit comments