private void btnSetMJPEGUrl_Click(object sender, EventArgs e) { // string url = MainV2.config["mjpeg_url"] != null ? MainV2.config["mjpeg_url"].ToString() : @"http://127.0.0.1:56781/map.jpg";//@urlVideo;//@"http://127.0.0.1:56781/map.jpg"; //--string url = CaptureMJPEG.URL; //--if (DialogResult.OK == InputBox.Show("Mjpeg url", "Enter the url to the mjpeg source url", ref url, false)) //try //--{ //MainV2.config["mjpeg_url"] = url; //--CaptureMJPEG.Stop(); //--CaptureMJPEG.URL = url; //--} //catch(Exception exc) //--else //--{ //-- CaptureMJPEG.Stop(); //-- } var render = new vlcrender(); //string url = render.playurl; string url = "rtsp://admin:@10.50.0.1/user=admin_password=tlJwpbo6_channel=1_stream=0.sdp"; if (InputBox.Show("enter url", "enter url", ref url) == DialogResult.OK) { MainV2.instance.setVideoURL(url); render.playurl = MainV2.instance.getVideoURL(); try { render.Start(); } catch (Exception ex) { CustomMessageBox.Show(ex.ToString(), Strings.ERROR); } } }
private void myButton_vlc_Click(object sender, EventArgs e) { var render = new vlcrender(); var url = render.playurl; if (InputBox.Show("enter url", "enter url", ref url) == DialogResult.OK) { render.playurl = url; try { render.Start(); } catch (Exception ex) { CustomMessageBox.Show(ex.ToString(), Strings.ERROR); } } }