If this is going to be a library file, I'd suggest making the component an optional param (default to com_media).