我在 flutter 中使用 ffmpeg 视频转换。它在前台工作正常,但是当我尝试使用 flutter_background_service: ^2.4.6 在后台运行它时,它会抛出以下错误。
════════ 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
platform_channel.dart:294
\<asynchronous suspension\>
\#1 EventChannel.receiveBroadcastStream.\<anonymous closure\>
platform_channel.dart:637
\<asynchronous suspension\>
我已经更新了不同社区提供的 flutter 和 pub 包以及其他可能的解决方案。
以下github ticket供参考。