Hi guys, I'm kinda new with programming and as well with processing, but I'm trying to develop a project where a video starts playing when a mouse button is pressed and it stops when the button is pressed again...but if I pressed one more time the video would start from the beginning and so on.
I tried using the stop() function but then if I use it I don't know how can I play it back again once the button is pressed.
Basically the idea was: Press - Starts, Press- Stops, Press- Stars again from the beginning, Press- Stops...and so on.
Maybe it's a simple thing to do (or not), but until now I didn't figure it out.
Any ideas? Suggestions?
Thanks ;)
I tried using the stop() function but then if I use it I don't know how can I play it back again once the button is pressed.
Basically the idea was: Press - Starts, Press- Stops, Press- Stars again from the beginning, Press- Stops...and so on.
Maybe it's a simple thing to do (or not), but until now I didn't figure it out.
Any ideas? Suggestions?
Thanks ;)
1