tumtumtum / StreamingKit

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

Can't stop playing #168

Open lsn-sokna opened 9 years ago

lsn-sokna commented 9 years ago

I have a list of music URL, and once I select one of it and play, it's okay. but when I dismiss the viewcontroller (back) and select another song to play, the old one doesn't stop. I tried to use [audioPlayer stop]; but it didn't work for me.

Sorry for me English! If you don't get it any points, just ask!

Thanks

syrakozz commented 9 years ago

use the same instance of audioplayer . create a shared instance for it (static way)

lsn-sokna commented 9 years ago

Ok! I got what you meant. Thank you! I'll ask you for more problem.

lsn-sokna commented 9 years ago

One more question is, is it possible to detect now playing song? My app will play music streaming.

Thanks!

syrakozz commented 9 years ago

check /// The QueueItemId of the currently playing item -(NSObject*) currentlyPlayingQueueItemId; and then check the state of it