C# RSS Screensaver
Posted on 2012-04-12
Not sure what would be the best option here so if I explain the situation perhaps you could all offer how you would do this:
I'm building an RSS driven screensaver. This will ideally pull in the feed content from the published source and then use that to display content.
The consideration I have is that if for any reason the rss feed is not available it still needs to work. This is most likely to be because a laptop is off the network.
This is what I was thinking:
Build the application and bundle it with images (which are linked to using the RSS <link> tag) and an rss file with the content and a link/filename for each associated image file.
1) On load, download the rss file and copy it to the resources folder.
2) Parse the rss file, find the links to the images and copy them to the resources folder.
3) Run the screensaver using content/images from the now locally stored rss and image files.
If for any reason the rss download fails, use the defaults in the resources folderwhich will be bundled with the exe.
So, if anyone has any thoughts, ideas, suggestions or would like to say I'm plain wrong and have a much better way of doing things, please go for it.
I'm trying to keep this all in one exe as it's a screensaver.