In Raspberry Pi,I run a process that is
RunProcess[{"omxplayer","/home/pi/2.mp4"}]
However, I need to stop playing the video using a sensor. I find I must wait. I can't discontinue it. How should I do that? thanks.