Godot Playlists
by myyk
Playlists for Godot 4
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.
Usage
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.
Settings
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.
Example
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.
Version
Godot Playlist requires at least Godot 4.0.
License
This project is licensed under the terms of the MIT license.
Download
Support
If you need help or have questions about this plugin, please contact the author.
Contact Author