Ejemplo n.º 1
0
    def hideNow(self):
        if self.timerBR.isActive():
            self.timerBR.stop()

        self.videoBitrate = None
        self.BRvalue = "0"
        Converter.changed(self, "yes")
Ejemplo n.º 2
0
 def changed(self, what):
     if (
         what[0] == self.CHANGED_SPECIFIC
         and what[1] == iPlayableService.evUpdatedInfo
         or what[0] == self.CHANGED_POLL
     ):
         Converter.changed(self, what)
Ejemplo n.º 3
0
	def changed(self, what):
		if what[0] != self.CHANGED_SPECIFIC or what[1] in self.interesting_events:
			Converter.changed(self, what)
		elif self.need_wa:
			if self.getValue() != -1:
				Converter.changed(self, (self.CHANGED_SPECIFIC, iPlayableService.evVideoSizeChanged))
				self.need_wa = False
Ejemplo n.º 4
0
	def changed(self, what):
		if what[0] is self.CHANGED_SPECIFIC:
			if what[1] is iPlayableService.evStart or what[1] is iPlayableService.evUpdatedInfo:
				self.initTimer.start(500, True)
			elif what[1] is iPlayableService.evEnd:
				self.clearData()
				Converter.changed(self, what)
Ejemplo n.º 5
0
	def changed(self, what):
		if what[0] == self.CHANGED_SPECIFIC:
			if what[1] == iPlayableService.evStart:
				self.initTimer.start(100, True)
			elif what[1] == iPlayableService.evEnd:
				self.clearData()
				Converter.changed(self, what)
Ejemplo n.º 6
0
	def getAudioBitrateData(self, value, status):
		if status:
			self.audio = value
		else:
			self.audioBitrate = None
			self.audio = 0
		Converter.changed(self, (self.CHANGED_POLL,))
Ejemplo n.º 7
0
 def changed(self, what):
     if (
         what[0] != self.CHANGED_SPECIFIC
         or what[1] in [iPlayableService.evUpdatedInfo]
         or what[1] in [iPlayableService.evStart]
     ):
         Converter.changed(self, what)
Ejemplo n.º 8
0
	def changed(self, what):
		if what[0] is self.CHANGED_SPECIFIC:
			self.index = False
			self.num = None
			Converter.changed(self, what)
		elif what[0] is self.CHANGED_POLL:
			self.downstream_elements.changed(what)
Ejemplo n.º 9
0
	def getVideoBitrateData(self, value, status): # value = rate in kbit/s, status ( 1  = ok || 0 = nok (zapped?))
		if status:
			self.video = value
		else:
			self.videoBitrate = None
			self.video = 0
		Converter.changed(self, (self.CHANGED_POLL,))
Ejemplo n.º 10
0
 def changed(self, what):
     if what[0] != self.CHANGED_SPECIFIC or what[1] in (iPlayableService.evStart,):
         self.tpdata = None
         if self.type in (self.NUMBER, self.BOUQUET) or self.type == self.FORMAT and ('%n' in self.sfmt or '%B' in self.sfmt):
             self.what = what
             self.Timer.start(200, True)
         else:
             Converter.changed(self, what)
Ejemplo n.º 11
0
	def changed(self, what):
		if what[0] == self.CHANGED_SPECIFIC:
			if what[1] in (iPlayableService.evEnd, iPlayableService.evStart, iPlayableService.evUpdatedInfo):
				self.updateFEdata = True
			Converter.changed(self, what)
		elif what[0] == self.CHANGED_POLL and self.updateFEdata is not None:
			self.updateFEdata = False
			Converter.changed(self, what)
Ejemplo n.º 12
0
	def changed(self, what):
		if what[0] == self.CHANGED_SPECIFIC:
			if what[1] == iPlayableService.evVideoSizeChanged or what[1] == iPlayableService.evUpdatedInfo:
				Converter.changed(self, what)
		elif what[0] != self.CHANGED_SPECIFIC or what[1] in self.interesting_events:
			Converter.changed(self, what)
		elif what[0] == self.CHANGED_POLL:
			self.downstream_elements.changed(what)
Ejemplo n.º 13
0
	def changed(self, what):
		self.videoBitrate = None
		self.BRvalue="0"
		Converter.changed(self, "yes")
		if self.timerBR.isActive():
			self.timerBR.stop()
			self.timerBR.start(1000)
		else:
			self.timerBR.start(1000)
Ejemplo n.º 14
0
	def changed(self, what):
		if what[0] == self.CHANGED_SPECIFIC:
			if what[1] == iPlayableService.evStart:
				self.initTimer.start(200, True)
			elif what[1] == iPlayableService.evEnd:
				self.clearData()
				Converter.changed(self, what)
		elif what[0] == self.CHANGED_POLL:
			self.downstream_elements.changed(what)
Ejemplo n.º 15
0
	def changed(self, what):
		if what[0] is self.CHANGED_SPECIFIC and self.delay >= 0 and what[1] == iPlayableService.evStart:
			self.showclock = 0
			if self.loop != -1:
				self.loop = self.delay
			service = self.source.serviceref
			self.num = service and ('%d' if 'nozero' in self.type else '%04d') % service.getChannelNum() or None
			Converter.changed(self, what)
		elif what[0] is self.CHANGED_POLL:
			Converter.changed(self, what)
Ejemplo n.º 16
0
 def doIt(self):
     self.DynTimer.stop()
     if self.rescan == True:
         self.rescan = False
     if config.skin.primary_skin.value == 'hd_glass13/skin.xml':
         ee = int(config.plugins.Glass12Setup.par6.value) * 1000
     else:
         ee = 10000
     self.DynTimer.start(ee, True)
     Converter.changed(self, self.what)
Ejemplo n.º 17
0
	def changed(self, what):
		if what[0] == self.CHANGED_SPECIFIC:
			self.updateFEdata = False
			if what[1] == iPlayableService.evNewProgramInfo:
				self.updateFEdata = True
			if what[1] == iPlayableService.evEnd:
				self.feraw = self.fedata = None
			Converter.changed(self, what)
		elif what[0] == self.CHANGED_POLL and self.updateFEdata is not None:
			self.updateFEdata = False
			Converter.changed(self, what)
Ejemplo n.º 18
0
 def changed(self, what):
     if what[0] != self.CHANGED_SPECIFIC or what[1] in (iPlayableService.evStart,):
         self.refstr = self.isStream = self.ref = self.info = self.tpdata = None
         if (
             self.type in (self.NUMBER, self.BOUQUET)
             or self.type == self.FORMAT
             and ("%n" in self.sfmt or "%B" in self.sfmt)
         ):
             self.what = what
             self.Timer.start(200, True)
         else:
             Converter.changed(self, what)
     return
Ejemplo n.º 19
0
    def dataAvail(self, str):
        str = self.remainingdata + str
        newlines = str.split('\n')
        if len(newlines[-1]):
            self.remainingdata = newlines[-1]
            newlines = newlines[0:-1]
        else:
            self.remainingdata = ''
        for line in newlines:
            if len(line):
                self.datalines.append(line)

        if len(self.datalines) >= 2:
            try:
                self.vmin, self.vmax, self.vavg, self.vcur = [int(x) for x in self.datalines[0].split(' ')]
                self.amin, self.amax, self.aavg, self.acur = [int(x) for x in self.datalines[1].split(' ')]
            except:
                if DBG: j00zekDEBUG("bitrate class dataAvail except")
            self.datalines = []
            #print "bitrate class new data"
            Converter.changed(self, (self.CHANGED_POLL,))
	def changed(self, what):
		if what[0] == self.CHANGED_DEFAULT:
			self.source.onSelectionChanged.append(self.selChanged)
		Converter.changed(self, what)
Ejemplo n.º 21
0
 def changed(self, what):
     if what[0] != self.CHANGED_SPECIFIC or what[1] in self.interesting_events:
         Converter.changed(self, what)
Ejemplo n.º 22
0
	def changed(self, what):
		if what[0] != self.CHANGED_SPECIFIC or what[1] in (iPlayableService.evStart,):
			Converter.changed(self, what)
Ejemplo n.º 23
0
	def updateInfos(self, value, status):
		if status:
			self.BRvalue=str(value)
			Converter.changed(self, "yes")
Ejemplo n.º 24
0
	def forceChanged(self, what):
		if what == True:
			self.refstr = self.isStream = self.ref = self.info = self.tpdata = None
			Converter.changed(self, (self.CHANGED_ALL,))
			self.what = None
Ejemplo n.º 25
0
 def changed(self, what):
     if what[0] == self.CHANGED_POLL:
         Converter.changed(self, what)
Ejemplo n.º 26
0
	def changed(self, what):
		Converter.changed(self, (self.CHANGED_POLL,))
Ejemplo n.º 27
0
 def changed(self, what):
     if what[0] != self.CHANGED_SPECIFIC or what[1] in [
             iPlayableService.evStart
     ]:
         Converter.changed(self, what)
Ejemplo n.º 28
0
 def changed(self, what):
     if what[0] != self.CHANGED_SPECIFIC or what[1] == self.type:
         Converter.changed(self, what)
Ejemplo n.º 29
0
 def changed(self, what):
     if what[0] == self.CHANGED_POLL:
         Converter.changed(self, what)
Ejemplo n.º 30
0
 def changed(self, what):
     Converter.changed(self, what)
Ejemplo n.º 31
0
 def changed(self, what):
     if what[0] != self.CHANGED_SPECIFIC or what[
             1] in self.interesting_events:
         Converter.changed(self, what)
 def neededChange(self):
     if self.what:
         Converter.changed(self, self.what)
         self.what = None
	def changed(self, what):
		Converter.changed(self, (self.CHANGED_POLL,))
 def changed(self, what):
     if what[0] != self.CHANGED_SPECIFIC or what[1] in (
             iPlayableService.evStart, iPlayableService.evUpdatedEventInfo):
         Converter.changed(self, what)
Ejemplo n.º 35
0
	def forceChanged(self, what):
		if what == True:
			self.refstr = self.isStream = self.ref = self.info = self.tpdata = None
			Converter.changed(self, (self.CHANGED_ALL,))
			self.what = None
 def changed(self, what):
     if what[0] != self.CHANGED_SPECIFIC:
         Converter.changed(self, what)
Ejemplo n.º 37
0
 def changed(self, what):
     if what[0] != self.CHANGED_SPECIFIC or what[
             1] in self.interesting_events:
         Converter.changed(self, what)
     elif what[0] == self.CHANGED_POLL:
         self.downstream_elements.changed(what)
Ejemplo n.º 38
0
 def changed(self, what):
     if what[0] is self.CHANGED_SPECIFIC:
         Converter.changed(self, what)
     elif what[0] is self.CHANGED_POLL:
         self.downstream_elements.changed(what)
Ejemplo n.º 39
0
	def doSwitch(self):
		self.DynamicTimer.stop()
		Converter.changed(self, self.what)
Ejemplo n.º 40
0
 def hideNow(self):
     if self.timerBR.isActive():
         self.timerBR.stop()
     self.videoBitrate = None
     self.BRvalue = "0"
     Converter.changed(self, "yes")
Ejemplo n.º 41
0
	def changed(self, what):
		self.what = what
		Converter.changed(self, what)
Ejemplo n.º 42
0
	def neededChange(self):
		if self.what:
			Converter.changed(self, self.what)
			self.what = None
Ejemplo n.º 43
0
 def getAudioBitrateData(self, value, status):
     if status:
         self.audio = value
     else:
         self.audioBitrate = None
     Converter.changed(self, (self.CHANGED_POLL, ))
Ejemplo n.º 44
0
 def updateInfos(self, value, status):
     if status:
         self.BRvalue = str(value)
         Converter.changed(self, "yes")
Ejemplo n.º 45
0
 def changed(self, what):
     if what[0] == self.CHANGED_DEFAULT:
         self.source.onSelectionChanged.append(self.selChanged)
     Converter.changed(self, what)
Ejemplo n.º 46
0
 def changed(self, what):
     Converter.changed(self, what)
Ejemplo n.º 47
0
 def changed(self, what):
     if what[0] != self.CHANGED_SPECIFIC or what[1] == self.type:
         Converter.changed(self, what)
 def changed(self, what):
     if what[0] is self.CHANGED_POLL:
         self.downstream_elements.changed(what)
     elif not what[0] is self.CHANGED_SPECIFIC:
         Converter.changed(self, what)
Ejemplo n.º 49
0
 def changed(self, what):
     if (what[0] == self.CHANGED_SPECIFIC
             and what[1] == iPlayableService.evUpdatedInfo
         ) or what[0] == self.CHANGED_POLL:
         Converter.changed(self, what)