package com.kaltura.playersdk;

import com.kaltura.playersdk.events.OnQualitySwitchingListener;
import com.kaltura.playersdk.events.OnQualityTracksListListener;

public interface QualityTracksInterface {
	
	/**
	 * Will turn autoSwitch off and select given index
	 * @param newIndex
	 */
	 public void switchQualityTrack( int newIndex );
	 
	 /**
	  * @param autoSwitch when set to true player will automatically switch
	  *  quality
	  *  
	  */
	 public void setAutoSwitch( boolean autoSwitch );
	
	 /**
	 * Calls listener when quality list is available 
	 * @param listener
	 */
	 public void registerQualityTracksList( OnQualityTracksListListener listener );

	 /**
	  * Calls listeners when quality switch starts / ends
	  * @param listener
	  */
	 public void registerQualitySwitchingChange( OnQualitySwitchingListener listener );
	 
	 /**
	  * 
	  * @return transfer rate of last download
	  */
	 public float getLastDownloadTransferRate();
	 
	 /**
	  * 
	  * @return dropped frame count
	  */
	 public float getDroppedFrameCount();
	 
	 /**
	  * 
	  * @return buffer empting rate
	  */
	 public float getBufferEmptyRate();
	 
	 /**
	  * 
	  * @return current quality index
	  */
	 public int getCurrentQualityIndex();

}

@@ -200,24 +200,119 @@
 ce %7B%0A%09%0A%09/**%0A
+%09 * %0A%09 * @param newTime set buffer time%0A%09 */%0A%09public void setBufferTime( int newTime );%0A%09%0A%09/**%0A
 %09 * Will tur
@@ -983,16 +983,23 @@
 download
+ (KBPS)
 %0A%09  */%0A%09
@@ -1089,13 +1089,18 @@
 ame 
-count
+per second
 %0A%09  
@@ -1136,13 +1136,18 @@
 rame
-Count
+sPerSecond
 ();%0A
@@ -1185,19 +1185,22 @@
 fer 
-empting rat
+full percentag
 e%0A%09 
@@ -1231,16 +1231,17 @@
 ffer
-EmptyRat
+Percentag
 e();

update interface