Skip to content
This repository was archived by the owner on Jul 20, 2023. It is now read-only.
This repository was archived by the owner on Jul 20, 2023. It is now read-only.

Clear playlist functionality #35

@mattwritescode

Description

@mattwritescode

A nice feature that seems to be missing from this library is a public clearQueue() method. I managed to workaround it, but it involved creating a singleton-like subclass of Jukebox and re-initializing the Jukebox instance everytime I'd like to clear it. It seems like overkill and possibly memory leak prone, but here's the solution I came up with: https://gist.github.com/mattwritescode/963c343bd96488d87d156e056d6f8d7c

Also, I don't mind contributing to this code change if you like.
Thanks for the Jukebox though, it works great!

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions