-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
🚨 ffmpeg_kit_flutter fails to build due to old v1 embedding (PluginRegistry.Registrar) #1113
Comments
is there any use of creating issue as this project is no more maintend, as i request the developers or maintainers to accept all the fixes and PRs before removing the files from everywhere, or find someone who can fix the errors or maintain this package further, i can also maintain this package fully. for more details you can contact on [email protected] |
We don’t have the capacity to review pull requests, so they will be ignored.
I’m not sure which package you’re referring to. But just as a reminder; the native libraries (Android, iOS, macOS) will be removed on April 1st. After that, the Flutter and React Native plugins will also stop working. We’d be happy if someone continues maintaining the project, but no approval from us is needed. Developers are free to fork the project and maintain it independently. If we come across a fork that picks up where we left off, we’ll add its link to our README to help users find it. However, we haven’t seen any such forks yet. |
I have already uploaded a fixed version of this package in my repo, need some time to fix more bugs and I will push the main fixed package |
If these people do not maintain the library then you should fork it and add a new library, this is a very useful library. |
I am trying to fix it but I only want to focus on Android Related Flutter Package of this ffmpeg Kit Package. Because I don't want the headache of other react native, ios bugs fixing |
That's right, don't worry about React Native and other frameworks, just fix Flutter's library, nothing else is needed. |
fixed this in my repo. flutter only: |
Description:
I am using the latest Flutter SDK, but
ffmpeg_kit_flutter
fails to compile due to the use of deprecated v1 embedding (PluginRegistry.Registrar
) inFFmpegKitFlutterPlugin.java
.Error Message:
This issue occurs because Flutter v1 embedding has been removed, and
Registrar
is no longer available in Flutter 3.x. The plugin must be updated to use Flutter v2 embedding.Steps to Reproduce:
ffmpeg_kit_flutter
topubspec.yaml
:PluginRegistry.Registrar
error.Suggested Fix (Solution)
To fix this, update
FFmpegKitFlutterPlugin.java
to remove deprecated v1 embedding references.🔹 1. Remove
registerWith()
(Deprecated)In
FFmpegKitFlutterPlugin.java
, remove this method:🔹 2. Fix
init()
Method (RemoveRegistrar
)Find:
Replace with:
🔹 3. Remove
registrar
UsageFind:
Replace with:
Environment:
flutter --version
)dart --version
)6.0.3
Expected Behavior:
The plugin should use Flutter v2 embedding and not reference
PluginRegistry.Registrar
.Actual Behavior:
Build fails due to outdated v1 embedding (
Registrar
), preventing the project from compiling.Additional Notes
ffmpeg_kit_flutter
in Flutter 3.x.Request:
🔹 Please update
FFmpegKitFlutterPlugin.java
to fully support Flutter v2 embedding.🔹 Consider releasing a patched version (
6.0.4
) with this fix.The text was updated successfully, but these errors were encountered: