Advertisement
Guest User

Untitled

a guest
Nov 18th, 2019
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. import pafy
  2. import vlc
  3.  
  4. #url = "https://www.youtube.com/watch?v=WvV5TbJc9tQ"
  5. #video = pafy.new(url)
  6. #best = video.getbest()
  7. #playurl = best.url
  8.  
  9. #media = vlc.MediaPlayer(playurl)
  10. #media.play()
  11.  
  12. #Instance = vlc.Instance()
  13. #player = Instance.media_player_new()
  14. #Media = Instance.media_new(playurl)
  15. #Media.get_mrl()
  16. #player.set_media(Media)
  17. #player.play()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement