-
Notifications
You must be signed in to change notification settings - Fork 86
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Regarding stop button functionality #128
Comments
I have faced same problem in my current project but i have handle like this.
|
not working @sukh1993 sir, my code is as follows, can you point me where i am wrong where to add what code var audioURL:String? @IBAction func onClick_playAudioBtnTapped(_ sender: UIButton) { @IBAction func onClick_stopBtnTapped(_ sender: UIButton) { private func setupAudioPlayer() {
// MARK: - AudioPlayer Event Handlers
} |
@nishant6042 try this its works for me
|
not working @sukh1993 sir, i have done audiolayer.stop() in stop button click and in playedUntilEnd i have done as you said |
And actually i my case theres no next song when current song ends it just have to start the same song again but when i click stop button the ui resets but when play again it doesnt do anything |
pls help @sukh1993 sir |
@nishant6042 hi
|
not working still @sukh1993 sir |
@nishant6042 check with break points, Is your player reload the url or not on play button. if It is not working change stop method to pause. |
@sukh1993 sir working when doing pause instead of stop but doing that it pauses i want to restart from start when stop clicked |
@nishant6042 I will working this issue, this is bug on swift Audio side. |
So whats the alternate for now? |
and also what should i do to play in background also when i leave the screen @sukh1993 sir |
Hi @nishant6042 |
@nishant6042 also check this link :- #53 |
i have a button of play and stop the play pause functionality working fine but when i click on stop button it resets everything which works but when i play again nothing happens..please help
The text was updated successfully, but these errors were encountered: