コード例 #1
0
ファイル: PlayerBuilder.cs プロジェクト: aspik/MediaPortal-2
    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;
    }
コード例 #2
0
        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);
        }