Hi,
I implemented this extension to my app. But there are some problems:
-
It takes too long to start playing.
I guess for big files it’s good, like a movie or a video, but in my case, I use it for music (~4MB audio files) which takes more time to play, than simply downloading the file and then playing it. Maybe this is because of problem #2:
-
My server doesn’t provide Content-Length header, so the OnProgressChanged fires only at 100%. Perhaps this is why it takes so long to start playing the song. Is there some way to deal with this? In situations where the content-length is unknown?
-
In older android phone (android 6.0.1) the music plays botched, like : starting, skipping 30s, playing 3s, skipping 30s, playing again, skipping again, the end. It seems like a problem with the encoding process perhaps? In newer android phones this didn’t happen.
-
Most of the times, perhaps every time, the song plays to 60-70% and then just stops. Very weird, I thought it was because of my server’s headers, but it’s not. Also the cached file is complete, it’s just the .GetUrl that does this.
These problems made the extension unworkable for me. Although I love the concept. It’s extremely useful. So I’d like to hear from you.
Note: I used it on AI2, not Kodular.
Note 2: The aia demo doesn’t load in AI2. But the extension does. You might want to look at that.
Thank you very much
Fotios TSF Anonwins
edit: Also another thing: the GetCacheFilePath returns usually wrong path: it has .tmp in the end but the actual file is without .tmp, and other times the opposite. So I solved this by checking for both paths: with .tmp and without .tmp