def toggleMute(self):
        """ mute / unmute player """

        if not self.muted:
            self._mute()
            if self.delay_thread is not None:
                self.delay_thread.cancel()
            self.title_prefix = '[Muted] '
            self.muted = True
            self.show_volume = False
        else:
            self._mute()
            self.title_prefix = ''
            self.muted = False
            self.show_volume = True
        if self.oldUserInput['Title'] == '':
            self.outputStream.write(self.title_prefix + self._format_title_string(self.oldUserInput['Input']))
        else:
            self.outputStream.write(self.title_prefix + self._format_title_string(self.oldUserInput['Title']))
def toggleMute ( self ) : if not self . muted : self . _mute ( ) if self . delay_thread is not None : self . delay_thread . cancel ( ) self . title_prefix = '[Muted] ' self . muted = True self . show_volume = False else : self . _mute ( ) self . title_prefix = '' self . muted = False self . show_volume = True if self . oldUserInput [ 'Title' ] == '' : self . outputStream . write ( self . title_prefix + self . _format_title_string ( self . oldUserInput [ 'Input' ] ) ) else : self . outputStream . write ( self . title_prefix + self . _format_title_string ( self . oldUserInput [ 'Title' ] ) )
mute / unmute player