StreamingKit icon indicating copy to clipboard operation
StreamingKit copied to clipboard

Support iTunes Media Library

Open ghfghfg23 opened this issue 11 years ago • 7 comments

Added loading audio from URL with scheme "ipod-library://"

ghfghfg23 avatar Jun 05 '14 19:06 ghfghfg23

Hi dude.

Thanks for this. I'm concerned that rather than pulling out the frames from the iTunes library it's writing a temporary file which will have performance and wear consequences for iOS devices. :-\

tumtumtum avatar Jun 06 '14 08:06 tumtumtum

Copying a file should not be a big problem, if you do it ahead of time. What is really needed here is a major cleanup and formatting of this commit...

danielgindi avatar Oct 31 '14 09:10 danielgindi

Actually, there is a big problem with this code - where it locks until the file is done copying. This is a bad approach for a buffering model. You need to implement AVAssetReader instead. I will probably do it myself soon.

danielgindi avatar Oct 31 '14 09:10 danielgindi

Yes, for a long time I've had the intention to make STKAudioPlayer consume a compressed audio data source so that it consumes raw header-less frames (like those coming from AVAssetReader) leaving it up to the DataSources to manually provide information that would normally be in the header. This would me the player better support non file-like sources.

tumtumtum avatar Oct 31 '14 09:10 tumtumtum

+1

syrakozz avatar Jan 22 '15 15:01 syrakozz

playing from iPod library doesn't work. Even in your test project. Error 2 -> STKAudioPlayerErrorStreamParseBytesFailed @ghfghfg23 @tumtumtum

Appes avatar Aug 19 '15 14:08 Appes

ghfghfg23, Thanks for your amazing job.

I am facing a small issue. I am not able to play song which has duration more than 5 minutes. It is giving errorcode 2.

Small songs works fine.

Any idea on this?

Thanks.

kuntal33 avatar Jan 31 '17 16:01 kuntal33