Exemplo n.º 1
0
        // Open MJPEG URL
        private void OpenMJEPGFileItem_Click(object sender, System.EventArgs e)
        {
            URLForm form = new URLForm
            {
                Description = "Enter URL of an MJPEG video stream:",
                URLs        = new string[]
                {
                    "http://129.186.47.239/axis-cgi/mjpg/video.cgi?resolution=352x240",
                    "http://195.243.185.195/axis-cgi/mjpg/video.cgi?camera=3",
                    "http://195.243.185.195/axis-cgi/mjpg/video.cgi?camera=4",
                    "http://chipmunk.uvm.edu/cgi-bin/webcam/nph-update.cgi?dummy=garb"
                }
            };

            if (form.ShowDialog(this) == DialogResult.OK)
            {
                // create video source
                MJPEGStream mjpegSource = new MJPEGStream
                {
                    VideoSource = form.URL
                };

                // open it
                OpenVideoSource(mjpegSource);
            }
        }
Exemplo n.º 2
0
        // Open URL
        private void OpenURLFileItem_Click(object sender, System.EventArgs e)
        {
            URLForm form = new URLForm
            {
                Description = "Enter URL of an updating JPEG from a web camera:",
                URLs        = new string[]
                {
                    "http://61.220.38.10/axis-cgi/jpg/image.cgi?camera=1",
                    "http://212.98.46.120/axis-cgi/jpg/image.cgi?resolution=352x240",
                    "http://webcam.mmhk.cz/axis-cgi/jpg/image.cgi?resolution=320x240",
                    "http://195.243.185.195/axis-cgi/jpg/image.cgi?camera=1"
                }
            };

            if (form.ShowDialog(this) == DialogResult.OK)
            {
                // create video source
                JPEGStream jpegSource = new JPEGStream
                {
                    VideoSource = form.URL
                };

                // open it
                OpenVideoSource(jpegSource);
            }
        }
Exemplo n.º 3
0
        // Open MJPEG URL
        private void openMJEPGFileItem_Click(object sender, System.EventArgs e)
        {
            URLForm form = new URLForm();

            form.Description = "Enter URL of an MJPEG video stream:";
            form.URLs        = new string[]
            {
                "http://hanselman.dyndns.org:81/mjpeg.cgi",
                "http://sun.jerseyinsight.com/trafficbeaumont/nph-update.cgi",
                "http://peeper.axisinc.com/nph-manupdate.cgi",
                "http://marc15ter.vac.hu/nphMotionJpeg?Resolution=320x240&Quality=Standard",
                "http://213.200.232.69:8080/axis-cgi/mjpg/video.cgi?resolution=320x240"
            };

            if (form.ShowDialog(this) == DialogResult.OK)
            {
                // create video source
                MJPEGSource mjpegSource = new MJPEGSource();
                mjpegSource.VideoSource      = form.URL;
                mjpegSource.Login            = form.Login;
                mjpegSource.Password         = form.Password;
                mjpegSource.PreAuthenticate  = form.PreAuthenticate;
                mjpegSource.AuthWithHomePage = form.AuthWithHomePage;

                // open it
                OpenVideoSource(mjpegSource);

                // enable camera window
                cameraWindow.Enabled = true;
            }
        }
Exemplo n.º 4
0
        // Open URL
        private void openURLFileItem_Click(object sender, System.EventArgs e)
        {
            URLForm form = new URLForm();

            form.Description = "Enter URL of an updating JPEG from a web camera:";
            form.URLs        = new string[]
            {
                "http://aleksandriacamk1.it.helsinki.fi/axis-cgi/jpg/image.cgi?resolution=320x240",
                "http://stareat.it.helsinki.fi/axis-cgi/jpg/image.cgi?resolution=320x240",
                "http://194.18.89.220/axis-cgi/jpg/image.cgi?resolution=320x240",
                "http://212.247.228.34/axis-cgi/jpg/image.cgi?resolution=352x240"
            };

            if (form.ShowDialog(this) == DialogResult.OK)
            {
                // create video source
                JPEGSource jpegSource = new JPEGSource();
                jpegSource.VideoSource     = form.URL;
                jpegSource.Password        = form.Password;
                jpegSource.Login           = form.Name;
                jpegSource.PreAuthenticate = form.PreAuthenticate;

                // open it
                OpenVideoSource(jpegSource);

                // enable camera window
                cameraWindow.Enabled = true;
            }
        }
Exemplo n.º 5
0
        // Open MJPEG URL
        private void openMJEPGFileItem_Click(object sender, System.EventArgs e)
        {
            URLForm form = new URLForm();

            form.Description = "Enter URL of an MJPEG video stream:";
            form.URLs        = new string[]
            {
                "http://sun.jerseyinsight.com/trafficbeaumont/nph-update.cgi",
                "http://peeper.axisinc.com/nph-manupdate.cgi",
                "http://marc15ter.vac.hu/nphMotionJpeg?Resolution=320x240&Quality=Standard",
                "http://213.200.232.69:8080/axis-cgi/mjpg/video.cgi?resolution=320x240"
            };

            if (form.ShowDialog(this) == DialogResult.OK)
            {
                // create video source
                MJPEGSource mjpegSource = new MJPEGSource();
                mjpegSource.VideoSource = form.URL;

                // open it
                OpenVideoSource(mjpegSource);
            }
        }
Exemplo n.º 6
0
        private void mjpegToolStripMenuItem_Click(object sender, EventArgs e)
        {
            URLForm form = new URLForm();
            form.Description = "Enter URL of an updating JPEG from a web camera";

            //Load recent URLs
            String[] urls = new String[recentURLs.Count];
            recentURLs.CopyTo(urls, 0);
            form.URLs = urls;

            form.StartPosition = FormStartPosition.CenterScreen;
            if (form.ShowDialog(this) == DialogResult.OK)
            {
                //remove existing item (so it will be placed at top of list)
                if (recentURLs.Contains(form.URL))
                {
                    recentURLs.Remove(form.URL);
                }
                //update recent URLs
                if (recentURLs.Count == RECENT_URL_LIMIT)
                {
                    recentURLs.RemoveAt(RECENT_URL_LIMIT - 1);
                }
                recentURLs.Add(form.URL);

                //open the stream
                String sourceName = showGetSourceNameBox();
                if (sourceName != null) //user didn't select cancel
                {
                    MJPEGStream s = new MJPEGStream();
                    s.Source = form.URL;
                    Log.info(String.Format("Video source: {0}", s.Source));
                    VideoSource v = new VideoSource(sourceName, s);
                    sources.Add(v);
                    v.RemoveSelected += new VideoSource.RemoveEventHandler(r_RemoveSelected);
                    v.setViewerGlobalStickey(showAllToolStripMenuItem.Checked);
                    globalOptions.updateViewer(v);
                    v.startCamera(); //start camera by default
                }
            }
        }
Exemplo n.º 7
0
        // Open MJPEG URL
        private void openMJEPGFileItem_Click( object sender, System.EventArgs e )
        {
            URLForm form = new URLForm( );

            form.Description = "Enter URL of an MJPEG video stream:";
            form.URLs = new string[]
				{
					"http://129.186.47.239/axis-cgi/mjpg/video.cgi?resolution=352x240",
					"http://195.243.185.195/axis-cgi/mjpg/video.cgi?camera=3",
					"http://195.243.185.195/axis-cgi/mjpg/video.cgi?camera=4",
                    "http://chipmunk.uvm.edu/cgi-bin/webcam/nph-update.cgi?dummy=garb"
				};

            if ( form.ShowDialog( this ) == DialogResult.OK )
            {
                // create video source
                MJPEGStream mjpegSource = new MJPEGStream( );
                mjpegSource.VideoSource = form.URL;

                // open it
                OpenVideoSource( mjpegSource );
            }
        }
Exemplo n.º 8
0
        // Open URL
        private void openURLFileItem_Click( object sender, System.EventArgs e )
        {
            URLForm form = new URLForm( );

            form.Description = "Enter URL of an updating JPEG from a web camera:";
            form.URLs = new string[]
				{
					"http://61.220.38.10/axis-cgi/jpg/image.cgi?camera=1",
					"http://212.98.46.120/axis-cgi/jpg/image.cgi?resolution=352x240",
					"http://webcam.mmhk.cz/axis-cgi/jpg/image.cgi?resolution=320x240",
					"http://195.243.185.195/axis-cgi/jpg/image.cgi?camera=1"
				};

            if ( form.ShowDialog( this ) == DialogResult.OK )
            {
                // create video source
                JPEGStream jpegSource = new JPEGStream( );
                jpegSource.VideoSource = form.URL;

                // open it
                OpenVideoSource( jpegSource );
            }
        }
Exemplo n.º 9
0
        // Open URL
        private void openURLFileItem_Click(object sender, System.EventArgs e)
        {
            URLForm	form = new URLForm();

            form.Description = "Enter URL of an updating JPEG from a web camera:";
            form.URLs = new string[]
                {
                    "http://aleksandriacamk1.it.helsinki.fi/axis-cgi/jpg/image.cgi?resolution=320x240",
                    "http://stareat.it.helsinki.fi/axis-cgi/jpg/image.cgi?resolution=320x240",
                    "http://194.18.89.220/axis-cgi/jpg/image.cgi?resolution=320x240",
                    "http://212.247.228.34/axis-cgi/jpg/image.cgi?resolution=352x240"
                };

            if (form.ShowDialog(this) == DialogResult.OK)
            {
                // create video source
                JPEGSource jpegSource = new JPEGSource();
                jpegSource.VideoSource = form.URL;
                jpegSource.Password = form.Password;
                jpegSource.Login = form.Name;
                jpegSource.PreAuthenticate = form.PreAuthenticate;

                // open it
                OpenVideoSource(jpegSource);
            }
        }
Exemplo n.º 10
0
        // Open MJPEG URL
        private void openMJEPGFileItem_Click(object sender, System.EventArgs e)
        {
            URLForm	form = new URLForm();

            form.Description = "Enter URL of an MJPEG video stream:";
            form.URLs = new string[]
                {
                    "http://192.168.1.3/img/video.mjpeg",
                    "http://hanselman.dyndns.org:81/mjpeg.cgi",
                    "http://sun.jerseyinsight.com/trafficbeaumont/nph-update.cgi",
                    "http://peeper.axisinc.com/nph-manupdate.cgi",
                    "http://marc15ter.vac.hu/nphMotionJpeg?Resolution=320x240&Quality=Standard",
                    "http://213.200.232.69:8080/axis-cgi/mjpg/video.cgi?resolution=320x240"

                };

            if (form.ShowDialog(this) == DialogResult.OK)
            {
                // create video source
                MJPEGSource mjpegSource = new MJPEGSource();
                mjpegSource.VideoSource = form.URL;
                mjpegSource.Login = form.Login;
                mjpegSource.Password = form.Password;
                mjpegSource.PreAuthenticate = form.PreAuthenticate;
                mjpegSource.AuthWithHomePage = form.AuthWithHomePage;

                // open it
                OpenVideoSource(mjpegSource);
            }
        }