Code: Select all
import vlc
import time
url = "https://www.youtube.com/watch?v=s5TIulzXoXo"
instance = vlc.Instance()
media = instance.media_new(url)
player = instance.media_player_new()
player.set_media(media)
player.play()
The only answer says that I need to parse the media and play it's first subitem, but the code doesn't work. Instead of parse() I have used parse_with_options() and instead of first() I have tried item_at_index(0), but doesn't work anyway.... I have looked for examples or information, but I can't find much. Can you help me, please? Thanks!