private WebDictionary<string> GetExternalMediaInfoForMpTvServer(WebTvMediaType? type, string id) { if (type == WebTvMediaType.Recording) { return new WebDictionary<string>() { { "Type", "mp recording" }, { "Id", id } }; } else if (type == WebTvMediaType.TV) { return new WebDictionary<string>() { { "Type", "mp tvchannel" }, { "Id", id } }; } return null; }
/// <summary> /// Return external media info for recording /// </summary> /// <param name="type">Type of item</param> /// <param name="id">Id of recording</param> /// <returns>A dictionary object that can be sent to e.g. WifiRemote</returns> public WebDictionary<string> GetExternalMediaInfo(WebTvMediaType? type, string id) { return GetExternalMediaInfoForMpTvServer(type, id); }