I'm coding against IMediaLibrary in a plugin. I have exposed MediaItem.MediaItemId (guid) to a remote application as a unique reference to a media item, but when that app calls back again with this guid I want to turn it back into a MediaItem object. Doing a search is the only way I can think of doing it, but I can't figure out the filter I need since there doesn't seem to be an attribute I can use.
What I want to do is...
public MediaItem GetItemFromMediaItemId(Guid ObjectId)
{
var library = ServiceRegistration.Get<IMediaLibrary>();
return library.GetMediaItem(ObjectId, necessaryMIATypeIDs, optionalMIATypeIDs);
}
What I want to do is...
public MediaItem GetItemFromMediaItemId(Guid ObjectId)
{
var library = ServiceRegistration.Get<IMediaLibrary>();
return library.GetMediaItem(ObjectId, necessaryMIATypeIDs, optionalMIATypeIDs);
}