...
@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";
}
...
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