Digest loop insanity
mvarshavsky opened this issue · 3 comments
mvarshavsky commented
Open your demo page: https://danielstern.github.io/ngAudio/#/audio
Run the following line in the console: angular.element(document.body).scope().$watch(function() { console.log('Digesting...'); })
danielstern commented
Unfortunately we don't have a way around this ATM. Anyone want to take a crack at solving this?
mvarshavsky commented
Perhaps there's a reason for this, but without diving deep into the code - why does anything at all need to be running when nothing's playing?
Also, why do you need $setWatch
if everything's done on an interval anyway? For people who set "performance" higher?
danielstern commented
@mvarshavsky The sounds is constantly checked because outside user interaction's might have changed the time or volume without the component's knowledge