 						((mediaProxy.vo.entry is KalturaMediaEntry) && (int(mediaProxy.vo.entry.mediaType)==KalturaMediaType.IMAGE)))
 						break;
 					trace("bitrate detection:", notification.getName());
-					var configProxy:ConfigProxy = facade.retrieveProxy(ConfigProxy.NAME) as ConfigProxy;
+					_configProxy = facade.retrieveProxy(ConfigProxy.NAME) as ConfigProxy;
 					if ((viewComponent as bitrateDetectionPluginCode).useFlavorCookie)
 					{
 						var flavorCookie : SharedObject;

			trace ("bitrate detection: start download");
			if (!(viewComponent as bitrateDetectionPluginCode).downloadUrl)
				return;
			
			var configProxy:ConfigProxy = facade.retrieveProxy(ConfigProxy.NAME) as ConfigProxy;
			var mediaProxy:MediaProxy = facade.retrieveProxy(MediaProxy.NAME) as MediaProxy;
			//disable autoPlay - will change it back once the bitrate detection will finish
			if (configProxy.vo.flashvars.autoPlay == "true")
			{
				trace ("bitrate detection: was auto play");
				configProxy.vo.flashvars.autoPlay = "false";
				_wasAutoPlay = true;
			}
			if (mediaProxy.vo.singleAutoPlay) 

				
			}
			
			sendNotification(NotificationType.CHANGE_PREFERRED_BITRATE, {bitrate: bitrateVal});

			_bandwidth = bitrateVal;
			
			//write to cookie
			if (_configProxy.vo.flashvars.allowCookies=="true")
			{
				var flavorCookie : SharedObject;
				try
				{
					flavorCookie = SharedObject.getLocal("kaltura");
				}
				catch (e : Error)
				{
					trace("No access to user's file system");
				}
				if (flavorCookie && flavorCookie.data)
				{
					flavorCookie.data.preferedFlavorBR = bitrateVal;
					flavorCookie.flush();
				}
			}
			
			
			finishDownloadProcess();	
		}
