Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 5021

Beginners • Re: Video loop with button start

$
0
0
Have a look at this:

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")
You 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.

Statistics: Posted by deepo — Wed Jan 15, 2025 5:21 pm



Viewing all articles
Browse latest Browse all 5021

Trending Articles