def METHOD_NAME(value):
	from Screens.InfoBar import InfoBar
	if InfoBar.instance and InfoBar.instance.session and hasattr(InfoBar.instance.session, "pip") and config.av.pip_mode.value != "external":
		if value:
			PipPigModeTimer.stop()
			global PipPigModeEnabled
			if not PipPigModeEnabled:
				if BoxInfo.getItem("hasPIPVisibleProc"):
					open(BoxInfo.getItem("hasPIPVisibleProc"), "w").write("0")
				else:
					InfoBar.instance.session.pip.pipservice = False
				PipPigModeEnabled = True
		else:
			PipPigModeTimer.start(100, True)