         {
 			if ( e.resource && e.resource == _pluginResource ) {
 				e.target.removeEventListener(MediaFactoryEvent.PLUGIN_LOAD, onOSMFPluginLoaded);
+				if (segmentBuffer != -1) 
+					HLSManifestParser.MAX_SEG_BUFFER = segmentBuffer;
 				dispatchEvent( new KPluginEvent (KPluginEvent.KPLUGIN_INIT_COMPLETE) );
 			}
             

package
{
	import com.kaltura.hls.HLSPluginInfo;
    import com.kaltura.kdpfl.model.MediaProxy;
    import com.kaltura.kdpfl.plugin.IPlugin;
    import com.kaltura.kdpfl.plugin.IPluginFactory;

            _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;
