VLC Python doesn't play YouTube video
问题 When trying to play a YouTube URL with VLC media player via the Python bindings, the video does not actually play. Here is my code which does the playing: def play(self, mrl): self.instance = vlc.Instance() try: self.media = self.instance.media_new_location(mrl) except NameError: print('NameError: %s (%s vs LibVLC %s)' % (sys.exc_info()[1], vlc.__version__, vlc.libvlc_get_version())) self.player = self.instance.media_player_new() self.player.set_media(self.media) event_manager = self.player