/// <summary> /// Gibt eine URL zurück, welche die Aufnahme auf einen UPnP Gerät abspielen lässt. /// Returns a URL that plays the recording on a UPnP device. /// </summary> /// <returns></returns> public string GetUPnPUriString() { var extension = System.IO.Path.GetExtension(File); var rList = RecordingList.GetInstance(); //return $"http://{dvbApi.Hostname}:8090/upnp/recording/{ID}{extension}"; return($"{rList?.ServerURL}{ID}{extension}?d={Duration2.TotalSeconds}"); }
/// <summary> /// Gibt eine Liste aller Sender zurück. /// Returns a list of all channels. /// </summary> /// <returns></returns> public static async Task <List <RecordingChannel> > GetChannelsAsync() { var dvbApi = DVBViewerServerApi.GetCurrentInstance(); if (dvbApi != null) { var recs = await RecordingList.GetRecordingsAsync().ConfigureAwait(false); return((from f in recs.Items where f.Channel?.Name != null orderby f.Channel.Name select f.Channel).Distinct().ToList()); } return(null); }