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
320 stars 163 forks source link

How to create a player page that will be available everywhere in the app? #140

Open jgb-solutions opened 7 years ago

jgb-solutions commented 7 years ago

I'm currently developing a music app. And I'd like to use this plugin. I was wondering a lot of things about it. I even went through the issues.

The user will have a list of musics on a page. Then he will open the single music by clicking on one of them in the list. Now I would like the player to be in a special page so that it can stay playing everywhere in the app. Is that possible with this plugin or ionic?

I use the different types of pages that Ionic offers and I'm wondering how I could push that page and to call it so it can be accessible everywhere with player in it working with the current data.

Thank you!

RomeoDenis commented 7 years ago

you should put the player in main component view, (in app.html)

jgb-solutions commented 7 years ago

@RomeoDenis Thank you! that's what I ended up doing. But now my problem is that this plugin is not flexible enough. Its demo shows the a playlist. I'd like to play just one music and then have a list of musics that can be played on after the other. Now even the list of musics can be played altogether. That's not right. The normal behavior should be to stop playing one track when another is played. Does anyone know how to fix this? Because I started looking for alternatives as this plugin is not well documented. thank you!

tanvishah-syn commented 6 years ago

@jgbneatdesign Hi, I am also facing similar type of issue. Have you find any solution for this?

jgb-solutions commented 6 years ago

@tanuShah not yet. I'm still looking for a good player as I didn't great angular player yet. maybe HTML5 players should do. But still I'll have to make them work with angular.

arielfaur commented 6 years ago

179