def volMute(self, showMuteSymbol=True, force=False): if hdmi_cec.isVolumeForwarded(): return vol = self.volctrl.getVolume() if vol or force: self.volctrl.volumeToggleMute() if self.volctrl.isMuted(): if showMuteSymbol: self.muteDialog.show() self.volumeDialog.setValue(0) else: self.muteDialog.hide() self.volumeDialog.setValue(vol)
def volDown(self): if hdmi_cec.isVolumeForwarded(): return self.setVolume(-1)
def volUp(self): if hdmi_cec.isVolumeForwarded(): return self.setVolume(+1)