Added getMediaFormats API method