Jan
16
2007

radio, radio

wtwp_20070112.jpgOne 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:

  1. The Flash player loads in an XML file which contains the schedule information.
  2. 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.
  3. 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.

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.

Posted by Ben Compton on January 16, 2007 12:52 AM

oh yeah, and I forgot to say, “cool widget!”

Posted by Ben Compton on January 16, 2007 12:53 AM

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. :)

Posted by alykat on March 4, 2007 1:03 PM

Post a comment

As a spam-control measure, your comment may require my approval before it will appear on the entry. Thanks for waiting. To avoid the moderation delay, consider filling in your e-mail address. It won't appear on the site, but I use it to whitelist frequent commenters so their comments appear automatically.


The following HTML tags are permitted (if you want to use them):
p, br, a href, b, strong, u, i, em, ol, ul, li, cite, blockquote

TrackBack

TrackBack URL for this entry: http://www.morethanthis.net/mtadmin/mt-tb.cgi/1732