goxr3plus / java-stream-player

🌌Java Advanced Audio Controller Library (WAV, AU, AIFF, MP3, OGG VORBIS, FLAC, MONKEY's AUDIO and SPEEX audio formats )
GNU General Public License v3.0
147 stars 33 forks source link

Remove System.out.println #82

Closed leotu closed 3 days ago

leotu commented 3 days ago

com.goxr3plus.streamplayer.stream.StreamPlayerEventLauncher.java

https://github.com/goxr3plus/java-stream-player/blob/09ddefe497a894dc9462d330792a9f09f69e2c77/src/main/java/com/goxr3plus/streamplayer/stream/StreamPlayerEventLauncher.java#L85

...
 @Override
    public String call() throws Exception {
    // Notify all the listeners that the state has been updated
    if (listeners != null) {
        listeners.forEach(listener -> listener
            .statusUpdated(new StreamPlayerEvent(source, playerState, encodedStreamPosition, description)));
    }

    System.out.println("Stream player Status -> " + playerState);
    return "OK";
    }
...
leotu commented 3 days ago

Main branch code:

logger.log(Level.INFO, "Stream player Status -> " + playerState);