Jan
16
2007
radio, radio
One of the projects I’ve worked on this month has been a redesign of the homepage for Washington Post Radio. The new design forgoes the schedule grid in favor of a stopwatch motif, as the station’s format for most of the day follows a fairly consistent hourly schedule.
I’m particularly happy with how the schedule widget on the page turned out, as it afforded a fun programming challenge in Flash. This is how it works:
- The Flash player loads in an XML file which contains the schedule information.
- The Flash player then compares the user’s time versus the schedule (correcting for time zones). If a special program is airing at this time (e.g., a Washington Nationals baseball game), that program will be highlighted in the “On the Air” textbox; otherwise, a promo for the current regularly scheduled program will appear instead.
- Every minute or so, the Flash player re-checks the time and, if necessary, updates the “On the Air” textbox and stopwatch highlight.
One point of potential error here is relying on the user’s computer clock time, which may or may not be accurate, to display time-sensitive information. I don’t think it’s a huge issue, though at some point I’d like to figure out a way around it.
TrackBack
TrackBack URL for this entry: http://www.morethanthis.net/mtadmin/mt-tb.cgi/1732
Comments
Is it prohibitive to make a request to a server to get time data? I know nothing about flash, but you’re already reading the XML file, which I assume is static—you could dynamically generate part of the xml file to insert the time (saving another server request) though that might be optimizing the wrong place, though generating dynamic content is sort of what your platform should be good at doing. :) I guess all I’m saying is you’re already doing some sort of server round-trip to fetch the xml, even another one to get time doesn’t seem too rough.
oh yeah, and I forgot to say, “cool widget!”
Ben — I’ve been meaning to reply back to you on this. Thanks for the feedback and suggestions. A couple other projects came up and I haven’t had a chance to get back to the radio schedule, but I do hope to revisit it one of these days. I’ll keep your suggestions in mind. :)