joan wrote:How are you going to stop the original playing video? When you know how to do that then just place that code in the second callback.
I do have a couple of callback functions (12 to be precise) . All of them play the video just fine when a GPIO pin is triggered. The problem is that while a callback function is being executed , I am unable to stop it in the middle and start a different callback function by triggering another GPIO pin.
I have to wait till the callback function is completed before I trigger another one. I find it strange cause it happens even though the main thread (which still runs kind of parallel with the callback function) is constantly checking for new GPIO triggers.
To summarise:
1)if Main thread plays a video , i can interrupt that to run a callback video
2)but when callback is running a video , i am unable to interrupt it to run a different callback video .
So was wondering if interrupting a running callback was possible