public static void stopPlayback() {
        try {
            if(currentPlayback != null) {
                currentPlayback.stop();
            }
        } catch (MediaException e) {
            System.out.println("Invalid media type.");
        }
    }