Exemplo n.º 1
0
        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");
        }
Exemplo n.º 2
0
 public void EnableETagEffect(bool IsEnable)
 {
     if (IsEnable)
     {
         RiaObject.EnableETagEffect();
     }
     else
     {
         RiaObject.DisableETagEffect();
     }
 }
Exemplo n.º 3
0
        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());
        }
Exemplo n.º 4
0
        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());
        }
Exemplo n.º 5
0
 public bool GetIsEnableETagEffect()
 {
     return(RiaObject.GetExecutionMode() == ConstExecuteMode.Normal);
     // throw new NotImplementedException();
 }