Beispiel #1
0
        public void viewVideo()
        {
            Monitor monitor = new Monitor();

            monitor.gateNo = comboBox__channel.SelectedIndex + 1;
            playbackControler.setMonitor(monitor);
            GateRecord gateRecord = new GateRecord();
            DateTime   dt         = DateTime.Parse(dateTimePicker_startTime.Text + " " + dateTimePicker_startTime_time.Text);
            DateTime   dt1        = DateTime.Parse(dateTimePicker_endTime.Text + " " + dateTimePicker_endTime_time.Text);

            gateRecord.nvr_begintime = dt;
            gateRecord.nvr_endtime   = dt1;
            playbackControler.play(gateRecord);
        }
        public ClearanceVideoReplayForm(DataRow dr)
        {
            InitializeComponent();

            ICustomsCMS server = XmlRpcInstance.getInstance();

            playbackControler = new H264Controler(this.searchVideoPlayWnd, server);
            playbackControler.setToolStripStatusLabel(this.toolStripStatusLabel);
            bool isSuccess = playbackControler.init();

            if (!isSuccess)
            {
                System.Environment.Exit(0);
            }

            gateRecord = new ModelHandler <GateRecord>().FillModel(dr);
            Monitor monitor = new Monitor();

            monitor.gateNo = gateRecord.gate_id;
            playbackControler.setMonitor(monitor);

            playbackControler.play(gateRecord);
        }
 private void btnPlay_Click(object sender, EventArgs e)
 {
     playbackControler.play(gateRecord);
 }