Music Player Application
Overview
This JavaFX-based music player allows you to create and manage playlists, search and sort songs, and navigate through them using a custom iterator. It also features a graphical user interface (GUI) for easy interaction.
Features
- Play/Pause/Stop: Basic controls to manage playback.
- Next Song: Skip to the next song in the playlist.
- Sort by Criteria: Sort songs by title, artist, or other metadata.
- Search: Filter songs based on keywords.
- Load and Save Playlists: Easily manage your playlists with M3U files.
- Graphical User Interface: User-friendly GUI for easy interaction.
How to Use
- Create a Playlist: Initialize a playlist and add your favorite audio files.
- Create an M3U playlist file and add paths to your audio files line by line.
- Search and Sort: Utilize the search feature to filter songs and sort them based on your preferred criteria.
- Navigate: Use the custom iterator to navigate through your playlist seamlessly.
- Load and Save: Load existing playlists from M3U files or save your current playlist to an M3U file for later use.
- Use the GUI: Launch the GUI to interact with the music player visually.
Prerequisites
- Java Development Kit (JDK) 8 or higher
- JavaFX SDK
Running the Application
- Create an M3U Playlist:
- Create a text file with the .m3u extension.
- Add the paths to your audio files, one per line. For example:
audiofiles/Rock 812.mp3
audiofiles/Motiv 5. Symphonie von Beethoven.ogg
audiofiles/Eisbach Deep Snow.ogg
Launch the Application:
- Compile and run the Player.java file.
- A GUI will pop up with the audio files loaded from your playlist.
Example Preview
Setup
- Clone the repository:
git clone https://github.com/abdzees/music-player.git
- Open the project in your preferred Java IDE.
- Add your audio files to the project directory.
- Run the PlayList class to start the application.
Running the GUI
- Compile and run the GUI main class (Player.java).
- Use the interface to navigate your playlist from your device.
License
This project is licensed under the General Public License License. See the LICENSE file for more details.