View Javadoc

1   package org.musicontroller.streaming;
2   
3   /**
4    * Interface for the method that streams Mpeg-info to clients.
5    * @author Varienaja
6    */
7   public interface IStreamController {
8   	
9   	/**
10  	 * Returns true when the current Song has to be skipped.
11  	 * @return True: current song must be skipped or False: keep on streaming.
12  	 */
13  	public boolean mustSkip();
14  	
15  	/**
16  	 * Sets the playing time of the Stream in milliseconds.
17  	 * @param millis The amount of milliseconds that were streamed.
18  	 */
19  	public void setPlayingTime(int millis);
20  
21  }