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

Are there any way to have two audioProvider? #207

Open yimity opened 6 years ago

yimity commented 6 years ago

think so. a audioProvider was inject in app.html(app.component.ts), and has some tracks. so the this.audioProvider.tracks has some audios, such as [1,2,3],

then nav to a page b, and the page b also has a audioProvider, inject by page b. this.audioProvider.tracks in page b also has some audios like [4, 5];

so, at least, the this.audioProvider.tracks has audios as [1,2,3,4,5];

can any way to have two independent this.audioProvider.tracks?

thank you very much. this is a very great plugin.