On Fri, July 7, 2006 11:23 am, Leonard Burton wrote: > I am researching setting up an application in PHP where it would play > various videos. > > I played with PHP and Totem but it didn't work exactly as planned. > > This code got the videos playing > <snip> > exec("totem --fullscreen million_dollar_weekend.mpeg"); > exec("totem --fullscreen we_use_power_edit.mp4"); > </snip> > > The problem here is that when the video stops totem stays open and > therefore my script does not realize that it is time to play the next > video. > > Does anyone have any ideas how to get them to stop properly? man totem *MIGHT* list a command line argument to make it play one video and quit... Or you might contact the totem team and get them to add it for you. > Is there another/better player than totem? Videolan does not have the > level of command line control that totem does. > > Is there a pcntl function that might do the trick? You could run totem in the background, and poll the process PID and see how "busy" it is, maybe... > I could keep a list of the videos and lengths and then have my script > issue a kill comand once the length of time plus some play time has > ellapsed. This is hinky, as the user could easily "pause" the video, presumably... Random Thought: Perhaps PHP GTK http://gtk.php.net already has a video player of some kind with "hooks" for you to know when the video is finished. -- Like Music? http://l-i-e.com/artists.htm -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php