Support iTunes Media Library
Added loading audio from URL with scheme "ipod-library://"
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. :-\
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...
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.
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.
+1
playing from iPod library doesn't work. Even in your test project. Error 2 -> STKAudioPlayerErrorStreamParseBytesFailed @ghfghfg23 @tumtumtum
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.