StreamingKit
StreamingKit copied to clipboard
Caching streams for offline use
First of all hello and thank you for the great work, @tumtumtum.
I was wondering if it would be feasible to actually implement some sort of cache layer that would save the streamed files locally for offline playback, and if so (which I would assume), how you would go about implementing this. Would NSURLCache help in this case?
I'm pretty new to iOS programming so excuse me if my question is silly.
Cheers!
NSURLCache is not what you want. You would want to extend DataSourceWrapper to persist bytes as they come in but before they go to the STKAudioPlayer.
+1 yes cache feature in this project it will be great
+1
+1
+1 :smile:
+1
+1
+100
+1. This will be very helpful.
Are there any examples that can be provided on how to achieve stream caching ?
I'd LOVE this too, struggling with how to implement it myself >.<.
Its not that hard, download the file to the app's sandbox and then save its path, pass it to playURL and voila!
On 29 Jun 2017, 10:29 +0100, Adam Green [email protected], wrote:
I'd LOVE this too, struggling with how to implement it myself >.<. — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.
@patrickjquinn check https://github.com/tumtumtum/StreamingKit/issues/127#issuecomment-62373425
Guys, StreamingKit is long dead. You can use FreeStreamer which is a great alternative, and even better than StreamingKit, also has caching :D
Does free streamer support audio/MP4 content types and is it CoreAudio based? If so I might be forced to make the jump...
On 30 Jun 2017, 09:57 +0100, hyd00 [email protected], wrote:
Guys, StreamingKit is long dead. You can use https://github.com/muhku/FreeStreamer which is a great alternative, and even better than StreamingKit, also has caching :D — You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or mute the thread.
And free streamer don't have equaliser settings...
The project not dead as long as there are users & contributors. I'm still watching but have been distracted by family and other issues.
+1000000
If we can figure out why some m4a don't play, I don't see any issues.
@tumtumtum so awesome
+10000000000000000000000000000000
+1
Download audio file to sandbox while playing with StreamingKit; Then the next time, play the local file url with StreamingKit;