Skip to content

How to use in background #125

@singhmukesh2023

Description

@singhmukesh2023

I need to compress video in the background to free the user interface. I am using workmanager for background and ffmpeg_kit_flutter_new for compressing. I got exception on compressing.

ffmpeg_kit_flutter_new: ^4.1.0
workmanager: ^0.9.0+3

I execute the compress cmd in WorkManger.executeTask().

@pragma('vm:entry-point')
void callbackDispatcher() {
Workmanager().executeTask((task, inputData) async {
print("Background task: $task");
// Your background work here
return Future.value(true);
});
}

Exception
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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions