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(); }
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); }
public segments(panes p, Camera c) { Stream = BasicOperation.GetStreamID(c.Ipaddr); Pane = p.PaneId; }