Example #1
0
 private void btStopAllVLC_Click(object sender, EventArgs e)
 {
     Sekunden.Stop();
     foreach (Process clsProcess in Process.GetProcesses())
     {
         if (clsProcess.ProcessName.StartsWith("vlc"))  // Beendet alle VLC Prozess bzw. Programme
         {
             clsProcess.Kill();
         }
     }
 }
Example #2
0
        private void btStartVideo_Click(object sender, EventArgs e)
        {
            MyGlobal.Sekunden       = 0;
            MyGlobal.CaptureCounter = 0;   // Setzt bei jedem Start den  Capture Counter auf 0
            Sekunden.Start();

            int    Cam = 1;
            string IP  = cbIP1.SelectedItem.ToString();

            funcStartiPHoneStream(Cam, IP);
            Cam = 2;
            IP  = cbIP2.SelectedItem.ToString();
            funcStartiPHoneStream(Cam, IP);
        }
Example #3
0
        private void btStartStream_Click(object sender, EventArgs e)
        {
            MyGlobal.Sekunden       = 0;
            MyGlobal.CaptureCounter = 0;   // Setzt bei jedem Start den  Capture Counter auf 0
            Sekunden.Start();

            var i  = 1;
            var IP = "";

            foreach (DataGridViewRow dgvRow in dataGridView1.Rows)
            //			foreach (DataGridViewRow item in dataGridView1.SelectedRows)
            {
                if (dgvRow.Selected)
                {
                    IP = dgvRow.Cells[0].Value.ToString();
                    //	MessageBox.Show(IP.ToString());
                    //	MessageBox.Show(i.ToString());
                    // values[i] = dgv.SelectedCells[i].Value.ToString();
                    //funcStartShowiPHone(i, IP);

                    string quote = "\"";

                    MyGlobal.VLC = quote + cb_VLCPath.Text + quote;  //64 oder 32 bit Betriebssystem
                                                                     //	 string info = "--network-caching=10000 --withe = 50 --one-instance --no-video-title-show --no-qt-name-in-title ";
                    string info = " --zoom 0.25  ";


                    MyGlobal.StreamPara = quote + "rtsp://" + IP + ":554 " + info + quote;
                    //           MyGlobal.StreamFile = ;
                    // MyGlobal.StreamFile = " --qt-start-minimized :sout=#file{dst=" + quote + MyGlobal.Pfad + cbTeam.Text + " " + DateTimePicker1.Text + "stream"+ CameraNr +".avi" + quote + "}";

                    // MyGlobal.StreamFile = " --qt-start" ;

                    //MessageBox.Show(MyGlobal.VLC + MyGlobal.StreamPara);
                    //axVLCPluginLinks.playlist.add(MyGlobal.StreamPara, null, ":sout=#transcode{vcodec=theo,vb=800,acodec=flac,ab=128,channels=2,samplerate=44100}:file{dst=C:\\123.ogg,no-overwrite} :sout-keep");
                    //axVLCPluginLinks.playlist.play();

                    MyGlobal.VLCProNr[i] = funcProgStart(MyGlobal.VLC, MyGlobal.StreamPara);


                    i = i + 1;
                }
            }
        }