On Fri, Sep 09, 2005 at 10:20:46AM -0500, Jack Ungerleider wrote:
> On Friday 09 September 2005 9:21 am, Donovan Niesen wrote:
> > I'm looking to build a handful of multimedia kiosks for a project.
> > The main features of these kiosks is to display MPEG videos in a
> > playlist.  Simple enough so far, but the part I'm having trouble
> > finding a solution is that the playlists need to be able to be
> > adjusted on the fly without affecting the display and they need to be
> > able to change on a schedule (ie: playlist a plays in the morning,
> > playlist b plays in the afternoon, etc.)
> >
> > Does anybody know of a package or packages that might accomplish this?
> 
> I don't have a package (yet, this is intriguing so I'm going to look myself) 
> but here's a possible solution.
> 
> What if you setup your playlist files then have a "working" playlist file name 
> and use a cron job to copy playlist_a to playlist at the appropriate time? If 
> nothing else you should be able to start prototyping with this solution even 
> if it turns out to be suboptimal.

Couldn't you just do like ..  

#!/bin/sh

while true;
do /usr/bin/mplayer /mpegs/$1/*;
done


Then call it from cron in the morning with an argument of "morning",
create /mpegs/morning/ for the morning mpegs..

Even better build the time logic into the script..  

while (1){

	if (morning) {
		/usr/bin/mplayer /mpegs/morning/*
	}
	if (afternoon) {
		/usr/bin/mplayer /mpegs/afternoon/*
	}

}


Then if you need to add or remove mpegs, the "playlist" will be updated
after it cycles through the directory.

Dan