Пример #1
0
 protected string GetStreamingURL(string queryString)
 {
     string url = "";
     string rtspProfile = "idProfile="+(cbRecordingProfiles.Items.Count - 1).ToString();
     if (queryString.Contains("idRecording") && queryString.Contains(rtspProfile))
     {
       ServiceInterface server = new ServiceInterface();
       string idRecording = queryString.Substring(0, queryString.IndexOf('&'));
       idRecording = idRecording.Remove(0, 12);
       url = server.GetRecordingURL(Int32.Parse(idRecording));
     }
     else
       url = "\""+Utils.GetStreamURL() + "/Streamer.aspx?" + queryString+"\"";
     return url;
 }