You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
my test code:
import 'package:ffmpeg_kit_flutter/ffmpeg_kit.dart';
FFmpegKit.execute('-i "E:\0_Projects\Flutter-ffmpeg\ffmpegtest\file1.mp4" -c:v mpeg4 file2.mp4').then((session) async {
final returnCode = await session.getReturnCode();
if (ReturnCode.isSuccess(returnCode)) {
print("this is the success");
// SUCCESS
} else if (ReturnCode.isCancel(returnCode)) {
// CANCEL
print("this is the cancel");
} else {
// ERROR
print("this is the fail");
}
});
my error log:
Launching lib\main.dart on Windows in debug mode...
Connecting to VM Service at ws://127.0.0.1:61208/KRvl6ZXfkG4=/ws
flutter: Loading ffmpeg-kit-flutter.
[ERROR:flutter/lib/ui/ui_dart_state.cc(198)] Unhandled Exception: MissingPluginException(No implementation found for method getLogLevel on channel flutter.arthenica.com/ffmpeg_kit)
════════ Exception caught by services library ══════════════════════════════════
The following MissingPluginException was thrown while activating platform stream on channel flutter.arthenica.com/ffmpeg_kit_event:
MissingPluginException(No implementation found for method listen on channel flutter.arthenica.com/ffmpeg_kit_event)
When the exception was thrown, this was the stack
#0 MethodChannel._invokeMethod
pubspec.yaml setting:
flutter:
plugin:
platforms:
android:
package: com.arthenica.flutter.ffmpeg
pluginClass: FlutterFFmpegPlugin
ios:
pluginClass: FlutterFFmpegPlugin
web:
pluginClass: FlutterFFmpegPlugin
windows:
pluginClass: FlutterFFmpegPlugin
my test code:
import 'package:ffmpeg_kit_flutter/ffmpeg_kit.dart';
FFmpegKit.execute('-i "E:\0_Projects\Flutter-ffmpeg\ffmpegtest\file1.mp4" -c:v mpeg4 file2.mp4').then((session) async {
final returnCode = await session.getReturnCode();
if (ReturnCode.isSuccess(returnCode)) {
print("this is the success");
// SUCCESS
} else if (ReturnCode.isCancel(returnCode)) {
// CANCEL
print("this is the cancel");
} else {
// ERROR
print("this is the fail");
}
});
my error log:
Launching lib\main.dart on Windows in debug mode...
Connecting to VM Service at ws://127.0.0.1:61208/KRvl6ZXfkG4=/ws
flutter: Loading ffmpeg-kit-flutter.
[ERROR:flutter/lib/ui/ui_dart_state.cc(198)] Unhandled Exception: MissingPluginException(No implementation found for method getLogLevel on channel flutter.arthenica.com/ffmpeg_kit)
════════ Exception caught by services library ══════════════════════════════════
The following MissingPluginException was thrown while activating platform stream on channel flutter.arthenica.com/ffmpeg_kit_event:
MissingPluginException(No implementation found for method listen on channel flutter.arthenica.com/ffmpeg_kit_event)
When the exception was thrown, this was the stack
#0 MethodChannel._invokeMethod
#1 EventChannel.receiveBroadcastStream.
════════════════════════════════════════════════════════════════════════════════
#0 MethodChannel._invokeMethod
#1 FFmpegKitInitializer._initialize
#2 FFmpegKitInitializer.initialize
#3 FFmpegKitConfig.init
#4 AbstractSession.createFFmpegSession
#5 FFmpegSession.create
#6 FFmpegKit.executeWithArguments
Lost connection to device.
Exited (sigterm)
how to fix this issue?
The text was updated successfully, but these errors were encountered: