Beispiel #1
0
        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;
        }
Beispiel #2
0
 public ServiceInstance(string id, string input, bool loop,
                        string service, VLM.VLM_http vlm, XmlNodeList xn)
 {
     destination = new VLM.Broadcast[xn.Count];
     for (int i = 0; i < destination.Length; i++)
     {
         string        instance_id = id + "_" + service + "_" + i;
         VLM.Broadcast bc          = new VLM.Broadcast(instance_id, vlm);
         bc.clearinputs(); // needed if crashing an existing service
         bc.addinput(input);
         string o = xn[i].InnerText;
         bc.output      = o;
         bc.enabled     = true;
         bc.loop        = loop;
         destination[i] = bc;
     }
 }