In creating a webmedia module that will allow users to post Online TV and Radio stations with the feed embeded into the webpage I would like to add the option not to show the real url for the feed... But rather have it to to a drupal url such as www.example.com/webfeed/5 that would actually be the feed.

What is the best way to go about this without having to added each redirect into the .htaccess file.

I created a simple funciton that when given the nodes nid it would look up the real URL from the database and then use the header() command to redirect, but the media players don't seem to like that. anyone have some ideas?