Emptying cache of peaks.js - memory management

Viewed 59

The examples provided with peaks.js are fine when working within a multi-page environment. But not in a single page app environment such as Angular. The provided destroy method only removes the instance of the player but NOT the memory already taken up. How can I clear the cache?

I've tried:

peaks.destroy();

and

audioContext = null;

But both haven't worked.

0 Answers
Related