APAudioPlayer icon indicating copy to clipboard operation
APAudioPlayer copied to clipboard

Audio Streaming and player state

Open Juanpe opened this issue 10 years ago • 3 comments

Hi,

First time congratulations by this repository. Very usefully and very clean.

I'm using this audio player in my app and I've needed some changes and I thought that this changes could be new features for this player.

I've added a new method that load an play a streaming audio file. I've changed current method "loadItem" and I execute in background with blocks, so don't block the UI.

Also, I've added a new player property, the state. Now player has got various states, buffering, playing, stopped, paused and error. With this change the user be able to know the current status of player.

I've changed the delegate notification. Now, the method called "_notifyStatusChanged" is executed when set the current status of player.

Wait you feedback about this changes.

Thanks for code again, Juanpe

Juanpe avatar Jul 14 '15 16:07 Juanpe

Thank you! I'll check it out asap.

Krivoblotsky avatar Jul 15 '15 07:07 Krivoblotsky

Hi Serg Krivoblotsky, Could you check my code? Thanks

Juanpe avatar Aug 26 '15 10:08 Juanpe

Hi, Juanpe. Thank you for the PR. I'm having some difficulties with permissions over this repository. Once I will be able to merge pull requests, I'll check your code once again and merge it. Thanks for contribution.

Krivoblotsky avatar Aug 31 '15 11:08 Krivoblotsky