Adding more controls to the player
Now that we have a playlist, we need to ensure that songs play in a queue. We also need to add a few more controls typically found in audio players, such as Next, Previous, Fast Forward, Rewind, and Mute buttons. We also need to provide a method to change the volume of playback.
At the end of this iteration, our player would have the following additional controls in the top-button frame:
The pyglet API documentation provides simple interfaces for all these controls. For your reference, the documentation is available at:
Let's begin by adding methods to ...