Godot Playlists is a small library for loading large sets of resources such as AudioStreams in a way that uses minimal memory. It's useful for playing playlists of songs while only maintaining one song in memory at a time.
You can install it via the Asset Library or downloading a copy from GitHub.
Either add an AudioStreamPlaylistPlayer
or AudioStreamDirectoryPlayer
to your scene to continuously play a playlist in your project.
AudioStreamPlaylistPlayer
- Can take filepaths for the playlist.
AudioStreamDirectoryPlayer
- Can take a directory and extensions and create a playlist from that.
These settings are on both:
is_shuffled
- Default: false - When set to true, the playback order is shuffled. If there are more than 2 tracks, the same track won't be played twice. There will be no repeats until every track has played once.continuous_play
- Default: true - When set to true, it keep playing tracks one after another.
Take a look at the small scene in ExampleRandomPlaylist.tscn to see how you can use it. This example project has a small playlist and a button that you can press to skip to the next song.
Godot Playlist requires at least Godot 4.0.
This project is licensed under the terms of the MIT license.