2

I want to know if it's possible to check in omxplayer that it's finished to play a video file.

I use this code to start the omxplayer:

os.system("omxplayer -b /home/pi/Videos/file.mp4")

May be it is possible to run omxplayer so, that after playing the file it's closing itself and with polling to check if omxplayer process exists and if not -> to run the next file?

Thanks a lot!

1 Answer 1

1

Use Python OMXPlayer wrapper instead of os.system().

Read docs and example how to write simple script to run file. Read about is_playing() method, will be helpful.

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.