jxnblk / plangular

Create custom SoundCloud players with HTML & CSS
http://jxnblk.github.io/plangular
480 stars 93 forks source link

Global Player Interrupted Across Views #71

Closed louisscruz closed 6 years ago

louisscruz commented 9 years ago

Using V2 (angular), I've set up a global player in my site's footer. On the "Works" page, there are other tracks available with play buttons. All of the tracks are loaded via a factory through $rootScope in my app.js. This works perfectly fine when going from the main view to the "Works" view. If I am in the "works" view and click a track there, it will play, but when I go to the main view, the progress bar will freeze (though the audio will continue). Also, if I then return to the "Works" page, the play/pause button will no longer function, but the progress bar will return to normal functionality. Do you have any idea how I could go about fixing this?

louisscruz commented 9 years ago

The code for my footer can be found here: https://github.com/louisscruz/louiscruz/blob/master/client/components/footer/footer.html