Skip to content Skip to sidebar Skip to footer

Speeding Up Firebase Storage Download

I am trying to pull videos from firebase storage and put them into a slideshow on my Android app but the videos take so long to load. Does anyone have any alternatives or ways to

Solution 1:

You can store your files in the Regional Storage, such as us-east1.

Please refer to https://cloud.google.com/storage/docs/bucket-locations and change your bucket's region to most closest place to you.

Solution 2:

One thing you can do is split your video in smaller chunks when you are uploading then download chunks one by one as slideshow plays. It is a good idea because by this way you or your user don't have to wait for whole file. you can start playing videos as soon as your first chunk is available and then continue downloading next one's in background. When you chunk video files, you reduce the risk of timeouts. If a small chunk fails to download for whatever reason, you can automatically retry only that chunk, instead of having to restart the entire download.

and yes when firebase is downloading it will do chucking but it'll be random and not much useful to you now because firebase'll do it for download and it'll signal you when file is fully downloaded to play.

Every streaming service does this. even though multithread downloaders also do the same.

you can google to find optimal chunk size and more about it.

I just googled and it looks good. https://www.limelight.com/blog/multiple-solutions-for-low-latency-live-video-streaming/

Post a Comment for "Speeding Up Firebase Storage Download"