python-vlc won't start the player
Ok I solved it on my own.I just had to put an infinite loop in the end,so the player has enough time to run:
while True:
pass
I prefer:
from time import sleep
sleep(5) # Or however long you expect it to take to open vlc
while player.is_playing():
sleep(1)
This way, we can return once video is done playing.