From 0df99ad869cfbaad21bfed4f6da7f01dc87e9145 Mon Sep 17 00:00:00 2001 From: Micael Cid Date: Thu, 19 Sep 2024 11:45:50 +0200 Subject: [PATCH] feat: adds CreateFFmpegParam.mainName parameter --- lib/src/ffmpeg.dart | 9 ++++++++- lib/src/none/ffmpeg.dart | 7 ++++++- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/lib/src/ffmpeg.dart b/lib/src/ffmpeg.dart index e7c922e..e89a0f7 100644 --- a/lib/src/ffmpeg.dart +++ b/lib/src/ffmpeg.dart @@ -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() diff --git a/lib/src/none/ffmpeg.dart b/lib/src/none/ffmpeg.dart index dee428b..f6f17eb 100644 --- a/lib/src/none/ffmpeg.dart +++ b/lib/src/none/ffmpeg.dart @@ -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 {}