Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Idea: playlist.destroy() #46

Open
alexander-daniel opened this issue Jan 18, 2017 · 0 comments
Open

Feature Idea: playlist.destroy() #46

alexander-daniel opened this issue Jan 18, 2017 · 0 comments

Comments

@alexander-daniel
Copy link
Contributor

Sometimes if you're dealing with multiple waveform-playlist instances, it would be nice to be able to destroy one. This is sort of possible right now, however if the playlist is currently loading a track, it will continue to execute that logic (and any event handlers associated with loading that the user has set up), regardless if you've cleared or deleted the instance.

Ideally, the loading promises would be cancellable, and when you call playlist.destroy() it cleans everything up, the audioContext, the DOM elements, and also would cancel any pending promises!

I'll think through this one a bit more, but just dropping this issue in case there could be a nice discussion.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants