tumtumtum / StreamingKit

A fast and extensible gapless AudioPlayer/AudioStreamer for OSX and iOS (iPhone, iPad)
Other
2.42k stars 525 forks source link

Caching streams for offline use #127

Open pierluigi opened 10 years ago

pierluigi commented 10 years ago

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!

tumtumtum commented 9 years ago

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.

syrakozz commented 9 years ago

+1 yes cache feature in this project it will be great

etamity commented 9 years ago

+1

MichaelIT commented 8 years ago

+1

CVertex commented 8 years ago

+1 :smile:

vitahuang commented 8 years ago

+1

tianpengtao commented 8 years ago

+1

hyd00 commented 8 years ago

+100

derpoliuk commented 7 years ago

+1. This will be very helpful.

georgesjamous commented 7 years ago

Are there any examples that can be provided on how to achieve stream caching ?

SleepiestAdam commented 7 years ago

I'd LOVE this too, struggling with how to implement it myself >.<.

patrickjquinn commented 7 years ago

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 notifications@github.com, 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.

derpoliuk commented 7 years ago

@patrickjquinn check https://github.com/tumtumtum/StreamingKit/issues/127#issuecomment-62373425

hyd00 commented 7 years ago

Guys, StreamingKit is long dead. You can use FreeStreamer which is a great alternative, and even better than StreamingKit, also has caching :D

patrickjquinn commented 7 years ago

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 notifications@github.com, 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.

iDevelopper commented 7 years ago

And free streamer don't have equaliser settings...

tumtumtum commented 7 years ago

The project not dead as long as there are users & contributors. I'm still watching but have been distracted by family and other issues.

iDevelopper commented 7 years ago

+1000000

doriansgithub commented 7 years ago

If we can figure out why some m4a don't play, I don't see any issues.

kristoff2016 commented 7 years ago

@tumtumtum so awesome

ggggffff commented 6 years ago

+10000000000000000000000000000000

dannliu commented 6 years ago

+1

mayqiyue commented 2 years ago

Download audio file to sandbox while playing with StreamingKit; Then the next time, play the local file url with StreamingKit;