PROBLEM:
I realized that playing audio after getting url is really slow on mobile.
So I changed the way of downloading to 'byte[]'.
I think it's faster but still slow and sometimes the app was killed because of the frequent requests for downloading.
Therefore I'm considering 'file download'.
But it would too heavy if I always download audios. (it's about more than 3MB per lesson)
MY IDEA:
So I'm considering 'file download' only for 'word' and 'byte[]' for others.
Because a user can collect words and can play many times I think it would be better to store in the device.
There are audios like below.
Lesson 1) word - able to collect 2) sentence 3) dialog
Reading 1) article 2) word - able to collect
And, there are 3 ways to download files on Firebase
PROBLEM: I realized that playing audio after getting url is really slow on mobile. So I changed the way of downloading to 'byte[]'. I think it's faster but still slow and sometimes the app was killed because of the frequent requests for downloading. Therefore I'm considering 'file download'. But it would too heavy if I always download audios. (it's about more than 3MB per lesson)
MY IDEA: So I'm considering 'file download' only for 'word' and 'byte[]' for others. Because a user can collect words and can play many times I think it would be better to store in the device.