danielstern/ngAudio

Digest loop insanity

mvarshavsky opened this issue · 3 comments

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...'); })

Unfortunately we don't have a way around this ATM. Anyone want to take a crack at solving this?

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?

@mvarshavsky The sounds is constantly checked because outside user interaction's might have changed the time or volume without the component's knowledge