HoloPed
Posts: 2
Joined: Sun Mar 08, 2015 11:20 pm

Need to play video and get event when done

Wed Sep 30, 2015 1:38 pm

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.

User avatar
davef21370
Posts: 897
Joined: Fri Sep 21, 2012 4:13 pm
Location: Earth But Not Grounded

Re: Need to play video and get event when done

Wed Sep 30, 2015 4:56 pm

Google PyGame movie.

Dave.
Apple say... Monkey do !!

User avatar
elParaguayo
Posts: 1943
Joined: Wed May 16, 2012 12:46 pm
Location: London, UK

Re: Need to play video and get event when done

Wed Sep 30, 2015 8:22 pm

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).
RPi Information Screen: plugin based system for displaying weather, travel information, football scores etc.

Return to “Python”