Replies: 5 comments
-
This is actually more a bug than a question because i can't upload files because of this reason, even on very performant smartphones it takes too long to retrieve... Is there any way to make it available instantly like getting a |
Beta Was this translation helpful? Give feedback.
-
If
All of these conditions are by design and must be implemented accordingly. If you want to know more about how to implement this, we've implemented a more user-friendly interaction at here: https://github.com/fluttercandies/flutter_wechat_assets_picker/blob/973fdcbb469cb2b2c7fc9750f0adf199f69a64d5/lib/src/widget/builder/locally_available_builder.dart
The answer is NO in most of the time on iOS. This system has a Sandbox mechanism, which will copy newly retrieving files into the sandbox that the app is holding. |
Beta Was this translation helpful? Give feedback.
-
Thanks for the detailed answer ! |
Beta Was this translation helpful? Give feedback.
-
So it is possible that the asset comes from even if we have not enable iCloud (i have never put photos / videos in iCloud and i have this loading on some files), i had no idea about it. How can the thumbnail be retrieved instantly with I would guess that Apple make them available for any apps to avoid using too much disk space per app for caching always the same assets but i don't know... |
Beta Was this translation helpful? Give feedback.
-
Is it a real question? As you can think this again, it's impossible for us to retrieve any files that are not available locally.
Yes, thumbnails can be retrieved locally, since the OS may have a cache manager holding all thumbnails.
That's not related to a photo manage plugin. |
Beta Was this translation helpful? Give feedback.
-
Expect
I need the
filePath
of theAssetEntity
to be able to upload it.So i have tested :
assetEntity.file
assetEntity.originFile
assetEntity.loadFile()
I am also trying to display very quickly a preview of the file (thanks to its path) in a
VideoPlayer
Widget.However, my beta test users told me that videos were not playing locally for a very long time and after it's always working.
So i have set a
PMProgressHandler
to listen to the progress as written in the docs, and it's working.However i am surprised to see the progress like this :
Where
time
is inseconds
. The above logs are given by the below code :So as you can see, it tooks 33 + (60-47) = 46 seconds to load a 19sec video file.
I would like to understand why is it so long to retrieve a path ? This is almost x5 times the time it takes to actually upload the video :/
The only explanation i have came up with is that the path actually doesn't exist and you save the origin file to a temp file path and that takes a huge amount of time even for a powerful device... Which is also weird because i am also saving temp files in my app (1min videos that are edited) and it usually takes maximum 5seconds for the biggest video.
I need this
filePath
to "exists" as fast as possible, is there any way to do that ?Thanks a lot in advance for any guidance !
Beta Was this translation helpful? Give feedback.
All reactions