[fix bug 1082208] Support media files and CDN.

Probably want to use the factory here in case initialization becomes more complex, so that we don't have to update all these later.