public RestService() { CCTVInfo[] info = new CCTVInfo[] { new CCTVInfo() { ch = "1", MjpegUrl = "http://192.192.85.33/axis-cgi/mjpg/video.cgi?camera=1", UserName = "******", Password = "******", StreamServerPort = 9090 }, new CCTVInfo() { ch = "2", MjpegUrl = "http://192.192.85.33:204/axis-cgi/mjpg/video.cgi?camera=1", UserName = "******", Password = "******", StreamServerPort = 9091 }, new CCTVInfo() { ch = "3", MjpegUrl = "http://192.192.85.33/axis-cgi/mjpg/video.cgi?camera=1", UserName = "******", Password = "******", StreamServerPort = 9092 }, new CCTVInfo() { ch = "4", MjpegUrl = "http://192.192.85.33:204/axis-cgi/mjpg/video.cgi?camera=1", UserName = "******", Password = "******", StreamServerPort = 9093 } }; ETAGReader reader = new ETAGReader("192.192.85.33", 50007); obj = new RiaObject(info, reader, 1, 7); RiaObject.AddWhiteList("0X00BFDE232520FF63991F027B"); RiaObject.AddWhiteList("0X110514000000000000000386"); }
public void EnableETagEffect(bool IsEnable) { if (IsEnable) { RiaObject.EnableETagEffect(); } else { RiaObject.DisableETagEffect(); } }
protected override void OnStart(string[] args) { reader = new ETAGReader("192.192.85.33", 50007); CCTVInfo[] infos = new CCTVInfo[]{ new CCTVInfo(){ MjpegUrl="http://192.192.85.33/axis-cgi/mjpg/video.cgi?camera=1", UserName= "******", Password="******", StreamServerPort=9090} }; obj= new RiaObject(infos, reader, 1, 7); // 0x00BFDE232520FF63991F027A RiaObject.AddWhiteList("0x00BFDE232520FF63991F027A"); host = new ServiceHost(new Service1()); }
protected override void OnStart(string[] args) { reader = new ETAGReader("192.192.85.33", 50007); CCTVInfo[] infos = new CCTVInfo[] { new CCTVInfo() { MjpegUrl = "http://192.192.85.33/axis-cgi/mjpg/video.cgi?camera=1", UserName = "******", Password = "******", StreamServerPort = 9090 } }; obj = new RiaObject(infos, reader, 1, 7); // 0x00BFDE232520FF63991F027A RiaObject.AddWhiteList("0x00BFDE232520FF63991F027A"); host = new ServiceHost(new Service1()); }
public bool GetIsEnableETagEffect() { return(RiaObject.GetExecutionMode() == ConstExecuteMode.Normal); // throw new NotImplementedException(); }