public Listener(string url, MessageConnection conn, string device, XmlNode node) : base(url, conn, device, node) { if (vlm == null) { vlm = new VLM.VLM_http(); } media_device = new VLM.Broadcast(id, vlm); XmlDocument xd = Web.fetch(url + "/getedgeoutput.php?id=" + id + "&device=" + device); XmlNodeList outputs = xd.GetElementsByTagName("output"); media_device.output = outputs[0].InnerText; }
public Edge(string url, MessageConnection conn, string device, XmlNode node) { this.url = url; this.conn = conn; this.device = device; id = ""; input = ""; active = false; loop = false; //service = new Dictionary<string,ServiceInstance>(); foreach (XmlNode child in node.ChildNodes) { switch (child.Name) { case "id": id = child.InnerText; break; case "input": input = child.InnerText; break; case "active": if (child.InnerText == "true" || child.InnerText == "1") { active = true; } else { active = false; } break; case "loop": if (child.InnerText == "true" || child.InnerText == "1") { loop = true; } else { loop = false; } break; } } }
public Source(string url, MessageConnection conn, string device, XmlNode node) : base(url, conn, device, node) { service = new Dictionary <string, ServiceInstance>(); }