StreamingKit icon indicating copy to clipboard operation
StreamingKit copied to clipboard

Caching streams for offline use

Open pierluigi opened this issue 10 years ago • 23 comments

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!

pierluigi avatar Aug 11 '14 19:08 pierluigi

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.

tumtumtum avatar Nov 10 '14 11:11 tumtumtum

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

syrakozz avatar Dec 19 '14 13:12 syrakozz

+1

etamity avatar Feb 27 '15 17:02 etamity

+1

MichaelIT avatar Dec 01 '15 03:12 MichaelIT

+1 :smile:

CVertex avatar Dec 01 '15 03:12 CVertex

+1

vitahuang avatar Jan 10 '16 15:01 vitahuang

+1

tianpengtao avatar Apr 21 '16 02:04 tianpengtao

+100

hyd00 avatar Aug 01 '16 11:08 hyd00

+1. This will be very helpful.

derpoliuk avatar Mar 29 '17 13:03 derpoliuk

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

georgesjamous avatar Apr 01 '17 15:04 georgesjamous

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

SleepiestAdam avatar Jun 29 '17 09:06 SleepiestAdam

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 avatar Jun 29 '17 09:06 patrickjquinn

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

derpoliuk avatar Jun 29 '17 09:06 derpoliuk

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

hyd00 avatar Jun 30 '17 08:06 hyd00

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.

patrickjquinn avatar Jun 30 '17 10:06 patrickjquinn

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

iDevelopper avatar Jun 30 '17 11:06 iDevelopper

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

tumtumtum avatar Jun 30 '17 11:06 tumtumtum

+1000000

iDevelopper avatar Jun 30 '17 11:06 iDevelopper

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

doriansgithub avatar Jun 30 '17 14:06 doriansgithub

@tumtumtum so awesome

kristoff2016 avatar Jun 30 '17 15:06 kristoff2016

+10000000000000000000000000000000

ggggffff avatar Jan 16 '18 09:01 ggggffff

+1

dannliu avatar Jul 25 '18 06:07 dannliu

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

mayqiyue avatar Feb 23 '22 08:02 mayqiyue