Page 1 of 1

Need to play video and get event when done

Posted: Wed Sep 30, 2015 1:38 pm
by HoloPed
Hi all,
I need to play a video fullscreen, and get an event when the video has finished.
Any ideas which library or wrapper will allow this?
Bonus points if it will also allow me to move the video while playing, because I want the video to slid in the screen, and not just appear.

Thanks.

Re: Need to play video and get event when done

Posted: Wed Sep 30, 2015 4:56 pm
by davef21370
Google PyGame movie.

Dave.

Re: Need to play video and get event when done

Posted: Wed Sep 30, 2015 8:22 pm
by elParaguayo
Kivy can probably do this too. Their docs say this:
Depending on your Video core provider, platform, and plugins, you will be able to play different formats. For example, the pygame video provider only supports MPEG1 on Linux and OSX. GStreamer is more versatile, and can read many video containers and codecs such as MKV, OGV, AVI, MOV, FLV (if the correct gstreamer plugins are installed)
I also wonder if you can use omxplayer and track when the process finishes (i.e. video ends).