 	import com.kaltura.kdpfl.view.controls.KTrace;
 	
 	import org.osmf.elements.ProxyElement;
+	import org.osmf.events.DynamicStreamEvent;
+	import org.osmf.events.HTTPStreamingEvent;
 	import org.osmf.events.MediaElementEvent;
 	import org.osmf.media.MediaElement;
 	import org.osmf.net.NetStreamLoadTrait;
+	import org.osmf.net.httpstreaming.HLSHTTPStreamSource;
 	import org.osmf.traits.DVRTrait;
 	import org.osmf.traits.DynamicStreamTrait;
 	import org.osmf.traits.MediaTraitType;
 	import org.puremvc.as3.interfaces.INotification;
 	import org.puremvc.as3.patterns.mediator.Mediator;
 	
-	import org.osmf.net.httpstreaming.HLSHTTPStreamSource;
-	import org.osmf.events.HTTPStreamingEvent;
-	
 	public class KalturaHLSMediator extends Mediator
 	{
 		public static const NAME:String = "KalturaHLSMediator";

			sendHLSDebug(debugInfo);
		}
		
		protected function sendSubtitleNotification(event:SubtitleEvent):void
		{
			sendNotification("loadEmbeddedCaptions", {language: event.language, text: event.text, trackid: 99}); // will triger onLoadEmbeddedCaptions function inside kplayer

		protected function setupDynamicStreamTrait(trait:DynamicStreamTrait):void
		{
			_dynamicTrait = trait;
			_dynamicTrait.addEventListener(DynamicStreamEvent.AUTO_SWITCH_CHANGE, onAutoBitrateSwitchChange);
			_dynamicTrait.addEventListener(DynamicStreamEvent.SWITCHING_CHANGE, onBitrateSwitchingChange);
		}
		
		protected function sendHLSDebug(debugInfo:Object):void
