1

I am using omxplayer to play videos. The video played very well. But I can't pause the video using the commands below. Can any one help me how to pause my video using python script?

Here, is the command I am using to pause my video ...

os.system('mkfifo t cat t | omxplayer --no-osd -b myvideo.mp4 &')

def play_pause():
    os.system('echo p > t rm t')

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.