code: def OnTogglePlay(self, event):
          
  
          if self.player.get_state() == vlc.State.Playing:
              self.player.pause()
          else:
              self.player.play()
  
          event.Skip()
docs: Toggles the video status between play and hold