  
  package org.denivip.osmf.net.httpstreaming.hls
 {
+	import flash.external.ExternalInterface;
 	import flash.net.URLRequest;
 	import flash.utils.ByteArray;
 	

				} 
			}
			
			if(_segment >= manifest.length) // if playlist ended, then end =)
				return new HTTPStreamRequest(HTTPStreamRequestKind.DONE);
			else{ // load new chunk
				request = new HTTPStreamRequest(HTTPStreamRequestKind.DOWNLOAD, manifest[_segment].url);
				
				dispatchEvent(new HTTPStreamingEvent(HTTPStreamingEvent.FRAGMENT_DURATION, false, false, manifest[_segment].duration));

		private function notifyTotalDuration(duration:Number, quality:int, live:Boolean):void{
			var sdo:FLVTagScriptDataObject = new FLVTagScriptDataObject();
			var metaInfo:Object = new Object();
			if(!live || (live && _indexInfo.dvrInfo))
				metaInfo.duration = duration;
			else
				metaInfo.duration = 0;
