예제 #1
0
        private void btnChangeView_Click(object sender, EventArgs e)
        {
            List <panes> list = BasicOperation.GeneratePanels(4);

            rtxReturn.Text = JsonConvert.SerializeObject(list);
            //StringBuilder sb = new StringBuilder();
            //foreach (panes px in list)
            //{
            //    sb.Append(px.paneId + "--LEFT:" + px.left + " --TOP:" + px.top + "    --RIGHT:" + px.right + " --:BOTTOM:" + px.bottom);
            //    sb.Append("\n");
            //}
            //rtxReturn.Text = sb.ToString();
        }
예제 #2
0
 public Camera(string cname, string cipaddr, string cusername = "******", string cpassword = "******", string crtsp = "", string cfps = "15", Resolution cres = Resolution.LOW)
 {
     Name     = cname;
     Ipaddr   = cipaddr;
     Username = cusername;
     Password = cpassword;
     if (crtsp == "")
     {
         Url = GetRTSPUrlFromCameraParameter(cres);
     }
     else
     {
         Url = crtsp;
     }
     StreamId = BasicOperation.GetStreamID(Ipaddr);
 }
예제 #3
0
 public segments(panes p, Camera c)
 {
     Stream = BasicOperation.GetStreamID(c.Ipaddr);
     Pane   = p.PaneId;
 }