Skip to content

Commit

Permalink
Merge pull request #23 from micaelcid/main
Browse files Browse the repository at this point in the history
feat: adds CreateFFmpegParam.mainName parameter to enable single-thread ffmpeg-core
  • Loading branch information
sarankumar-ns authored Sep 22, 2024
2 parents 25fec7d + 0df99ad commit f2dd4d0
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 f2dd4d0

Please sign in to comment.