justsoft / video_thumbnail

This plugin generates thumbnail from video file or URL. It returns image in memory or writes into a file. It offers rich options to control the image format, resolution and quality. Supports iOS and Android.
MIT License
183 stars 238 forks source link

Impact of upgrading from version 0.4.6 to 0.5.0 on android #108

Open nrikiji opened 2 years ago

nrikiji commented 2 years ago

Thanks for developing this plugin.

I upgraded from 0.4.6 to 0.5.0.

Non-fatal Exception: io.flutter.plugins.firebase.crashlytics.FlutterError
MissingPluginException(No implementation found for method file on channel plugins.justsoft.xyz/video_thumbnail). Error thrown null.

Only for android, but the number of errors when calling VideoThumbnail.thumbnailFile in my app has increased 10 times.

I believe this is due to the plugin upgrade as I have not modified the program. Could you please let me know if there is any possible cause?

Also, is there any possibility that the upgrade of the plugin may slow down the processing speed when generating images?

justsoft commented 2 years ago

Thanks for this report. Could you provide more detail info regarding those errors?

nrikiji commented 2 years ago
    try {
      return await VideoThumbnail.thumbnailFile(
        video: ・・・,
        imageFormat: ImageFormat.JPEG,
        timeMs: ・・・,
        quality: ・・・,
        maxWidth: ・・・,
        thumbnailPath: ・・・,
      );
    } catch (e, st) {
      FirebaseCrashlytics.instance.recordError(e, st);
      return null;
    }

Parameters for calling.

I am unable to reproduce this in my own operations, but many users have sent crash reports due to their operations. Currently, I have no further information...

It is possible to add other logs in the event of an error. Is there any way to do this?

nrikiji commented 2 years ago

Could this be caused by insufficient capacity in the device? Percentage-wise, it's about 100 out of 3,000...

bjmcallister commented 1 year ago

I'm also getting this issue.