Creating a media player using a linked list
To solidify our understanding of linked lists and explore new concepts, let's build a real-world application: a media player! This project will leverage the linked list structure and introduce us to additional techniques like working with doubly circular linked lists and ordered insertion.
Before we dive in, let's outline the core features of our media player:
- Ordered song insertion: add songs to the playlist based on song title.
- Sequential playback: simulate playing songs one after the other in the playlist's order.
- Navigation: easily jump to the previous or next song.
- Continuous repeat: automatically loop the playlist, playing songs repeatedly.
The following image represents the media player we will develop using linked lists:

To model our media player's playlist, we will use a custom node structure to represent each song. Following is the MediaPlayerSong
class:
class...