path to the media, either a file or a URL
directory to resolve the media from, in case the path is relative