Changed interface to take IMediaMetadata rather than string.