I have tried so many times to generate the video with Logo and text as watermark in Android Real device, but it stuck and doing long process and It could not generated any video path in Android real device. I used latest package.
Yeah It's working fine in iOS device but not Android real device. Any solution ? please help.
Below my code:
final generatedDestinationPath = await getOutputVideoPath();
final tapiocaBalls = [
TapiocaBall.textOverlay(timeStamp, 20, 35, 24, Colors.orange),
];
final cup = Cup(Content(outputVideoPath), tapiocaBalls);
await cup.suckUp(generatedDestinationPath).then(() async {
if (await File(outputVideoPath).exists()) {
await File(outputVideoPath).delete();
}
Navigator.of(GlobalVariable.navigatorState.currentContext!)
.pop(); // Dismiss the dialog.
Navigator.of(GlobalVariable.navigatorState.currentContext!).push(
MaterialPageRoute(
builder: (_) => VideoAndPhotoPreviewScreen(
filePath: generatedDestinationPath,
isTypeVideo: true,
),
),
);
})
I have tried so many times to generate the video with Logo and text as watermark in Android Real device, but it stuck and doing long process and It could not generated any video path in Android real device. I used latest package. Yeah It's working fine in iOS device but not Android real device. Any solution ? please help. Below my code:
final generatedDestinationPath = await getOutputVideoPath(); final tapiocaBalls = [ TapiocaBall.textOverlay(timeStamp, 20, 35, 24, Colors.orange), ]; final cup = Cup(Content(outputVideoPath), tapiocaBalls); await cup.suckUp(generatedDestinationPath).then(() async { if (await File(outputVideoPath).exists()) { await File(outputVideoPath).delete(); } Navigator.of(GlobalVariable.navigatorState.currentContext!) .pop(); // Dismiss the dialog. Navigator.of(GlobalVariable.navigatorState.currentContext!).push( MaterialPageRoute( builder: (_) => VideoAndPhotoPreviewScreen( filePath: generatedDestinationPath, isTypeVideo: true, ), ), ); })