public IPlayer GetPlayer(MediaItem mediaItem) { string mimeType; string title; if (!mediaItem.GetPlayData(out mimeType, out title)) return null; if (mimeType == UPnPRendererImagePlayer.MIMETYPE) { UPnPRendererImagePlayer imagePlayer = new UPnPRendererImagePlayer(); imagePlayer.NextItem(mediaItem, StartTime.AtOnce); return imagePlayer; } return null; }
public IPlayer GetPlayer(MediaItem mediaItem) { string mimeType; string title; if (!mediaItem.GetPlayData(out mimeType, out title)) { return(null); } if (mimeType == UPnPRendererImagePlayer.MIMETYPE) { UPnPRendererImagePlayer imagePlayer = new UPnPRendererImagePlayer(); imagePlayer.NextItem(mediaItem, StartTime.AtOnce); return(imagePlayer); } return(null); }