arielfaur / ionic-audio

An audio player for Ionic 3 and Angular 4. Works with HTML 5 audio or native audio using Cordova Media plugin.
http://arielfaur.github.io/ionic-audio/2.0/index.html
MIT License
321 stars 163 forks source link

How to dynamically pause and play audio? #176

Closed tanvishah-syn closed 6 years ago

tanvishah-syn commented 6 years ago

Hello, I'm developing an app that needs to display list of audio and if user click on a track it will pause previous playing track and play selected one. I don't want implement this functionality with play/pause button.

I have tried with: this._audioProvider.pause(0) // currentIndex