             _pluginInfo = new HLSPluginInfo();	
         }
         
+		public function get segmentBuffer():int
+		{
+			return _segmentBuffer;
+		}
+
+		public function set segmentBuffer(value:int):void
+		{
+			_segmentBuffer = value;
+		}
+
         public function create (pluginName : String =null) : IPlugin
         {
             return this;

        private static const HLS_PLUGIN_INFO:String = "com.kaltura.hls.HLSPluginInfo";
		private var _pluginResource:MediaResourceBase;

        
        public function KalturaHLSPlugin()
        {

        {
			if ( e.resource && e.resource == _pluginResource ) {
				e.target.removeEventListener(MediaFactoryEvent.PLUGIN_LOAD, onOSMFPluginLoaded);
				if (segmentBuffer != -1){ 
					HLSManifestParser.MAX_SEG_BUFFER = segmentBuffer; // if passed by JS, update static MAX_SEG_BUFFER with the new value 
				}
				dispatchEvent( new KPluginEvent (KPluginEvent.KPLUGIN_INIT_COMPLETE) );
			}
            
