Skip to content

Commit

Permalink
feat: adds CreateFFmpegParam.mainName parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
micaelcid committed Sep 19, 2024
1 parent 25fec7d commit 0df99ad
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
9 changes: 8 additions & 1 deletion lib/src/ffmpeg.dart
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,20 @@ import 'package:js/js_util.dart';
@JS()
@anonymous
abstract class CreateFFmpegParam {
external factory CreateFFmpegParam({bool? log, String? corePath});
external factory CreateFFmpegParam({
bool? log,
String? corePath,
String? mainName,
});

/// Whether Enable or Disable ffmpeg log to console.
external bool? get log;

/// Path URL of ffmpeg-core library.
external String? get corePath;

/// Main name of ffmpeg-core library function.
external String? get mainName;
}

@JS()
Expand Down
7 changes: 6 additions & 1 deletion lib/src/none/ffmpeg.dart
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,15 @@ library ffmpeg;
import 'dart:typed_data';

abstract class CreateFFmpegParam {
external factory CreateFFmpegParam({bool? log, String? corePath});
external factory CreateFFmpegParam({
bool? log,
String? corePath,
String? mainName,
});

bool? get log;
String? get corePath;
String? get mainName;
}

class FFmpeg {}
Expand Down

0 comments on commit 0df99ad

Please sign in to comment.