Video and image load time in flutter and supabase #127663
Replies: 3 comments 2 replies
This comment was marked as off-topic.
This comment was marked as off-topic.
-
Hey @Gourishh, thanks for being a part of the GitHub Community! Check out this previous Discussion where an answer suggests storing the images in a public URL, instead of fetching the image each time. If you are already doing this, you could also try caching the images but it would only improve reload time and not when the user first visits the page. 😕 That might help you dig into other possible solutions though! Here's the documentation on Supabase Storage CDN. |
Beta Was this translation helpful? Give feedback.
-
I have found solution through compression. It's not 100% what I wanted but it is very effective so I am marking this post as answer. I used package - video_compress for compressing videos. Still finding a good one for image. |
Beta Was this translation helpful? Give feedback.
-
Body
I am making a social media app using flutter and supabase. I am trying to replicate yt shorts/insta reels into my app but the difference is in the content type, I could be a video, image or audio. The main problem I am facing is the load time. It takes atleast 5-10 secs to load any content which is not good for UX experience. Can anybody guide me through the best method to implement this?
I tried compression but it didn't made a big difference. I have written basic code for video_player and image.network widget. My content is stored in supabase storage.
Guidelines
Beta Was this translation helpful? Give feedback.
All reactions