video_thumbnail icon indicating copy to clipboard operation
video_thumbnail copied to clipboard

Run platform code on background thread in Android

Open emvaized opened this issue 2 years ago • 0 comments

In my case video_thumbnail causes UI freezes when app fetches 20+ thumbnails simultaniously.

When expecting platform code, I found these lines: https://github.com/justsoft/video_thumbnail/blob/a915b3b9ef80075ee2e0e6332e9bf5eccc7495b7/android/src/main/java/xyz/justsoft/video_thumbnail/VideoThumbnailPlugin.java#L163 https://github.com/justsoft/video_thumbnail/blob/a915b3b9ef80075ee2e0e6332e9bf5eccc7495b7/android/src/main/java/xyz/justsoft/video_thumbnail/VideoThumbnailPlugin.java#L183

Does this mean that video_thumbnail runs it's platform code on the main UI thread? Or do I miss something?

emvaized avatar Dec 20 '21 20:12 emvaized