Have a look at this:
https://stackoverflow.com/questions/491 ... python-3-6You should have a loop where you at the start of the loop wait for a button press, then play video, wait for video to end, and start over.
https://stackoverflow.com/questions/491 ... python-3-6
Code:
Ended = 6current_state = player.get_state()while current_state != Ended: current_state = player.get_state() # do sth you want # You should sleep 1 second hereprint("vlc play ended")
Statistics: Posted by deepo — Wed Jan 15, 2025 5:21 pm