예제 #1
0
        private void button_Start_Click(object sender, RoutedEventArgs e)
        {
            //Get the name of the camera
            this.Title = "loading...";
            this.Title = Regex.Split(Regex.Split(web.GET("get_caminfo.cgi"), "<model>")[1], "</model>")[0];

            //start the video stream
            web.GET("switch_cammode.cgi?mode=play");
            web.GET("switch_cammode.cgi?mode=rec&lvqty=0320x0240");
            web.GET("exec_takemisc.cgi?com=startliveview&port=28488");

            //display the video stream
            UDPInputStream stream = new UDPInputStream(28488);
            stream.NewPictureReceived += Stream_NewPictureReceived;
            stream.startStream();
        }
예제 #2
0
        private void button_Start_Click(object sender, RoutedEventArgs e)
        {
            //Get the name of the camera
            this.Title = "loading...";
            this.Title = Regex.Split(Regex.Split(web.GET("get_caminfo.cgi"), "<model>")[1], "</model>")[0];

            //start the video stream
            web.GET("switch_cammode.cgi?mode=play");
            web.GET("switch_cammode.cgi?mode=rec&lvqty=0320x0240");
            web.GET("exec_takemisc.cgi?com=startliveview&port=28488");

            //display the video stream
            UDPInputStream stream = new UDPInputStream(28488);

            stream.NewPictureReceived += Stream_NewPictureReceived;
            stream.startStream();
        }