Java

How to Play, Loop, Pause and Stop Music in Java



How to Play, Loop, Pause and Stop Music in Java

Greetings, I am back with a highly requested video. Today I shall show you how to play, loop, pause and stop music/audio in Java. This version works in recent Java versions where sun.audio was removed. This method can’t play .mp3 files! The recommended audio file to use is .WAV but SND, AIFF and a few others are compatible. We will also be using a separate class for the audio functionality as that is good practice and to help reinforce how to…

Leave a Reply

Your email address will not be published. Required fields are marked *