code: private void sendCompleteStatus() {
          // may be the correct duration
          int duration = (lastMessageTs > 0) ? Math.max(0, lastMessageTs - streamStartTS.get()) : 0;
          if (log.isDebugEnabled()) {
              log.debug("sendCompleteStatus - duration: {} bytes sent: {}", duration, bytesSent.get());
          }
          sendOnPlayStatus(StatusCodes.NS_PLAY_COMPLETE, duration, bytesSent.get());
      }
docs: Send playlist complete status notification