async def pause(self):
        """Pauses playback if playing"""

        self.logger.debug("pause command")

        if not self.state == 'ready':
            return

        if self.streamer is None:
            return

        try:
            if self.streamer.is_playing():
                self.streamer.pause()
                self.pause_time = self.vclient.loop.time()
                self.statuslog.info("Paused")
        except Exception as e:
            logger.error(e)
            pass
async def pause ( self ) : self . logger . debug ( "pause command" ) if not self . state == 'ready' : return if self . streamer is None : return try : if self . streamer . is_playing ( ) : self . streamer . pause ( ) self . pause_time = self . vclient . loop . time ( ) self . statuslog . info ( "Paused" ) except Exception as e : logger . error ( e ) pass
Pauses playback if playing