/// <summary> /// Starting/Stopping Liveview /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void cbLiveView_CheckedChanged(object sender, EventArgs e) { if ((sender as CheckBox).Checked) { mjsource = new PtxK_S2.MJPEGSource(); mjsource.VideoSource = string.Format("http://{0}/v1/liveview", Properties.Settings.Default.IPAdressCamera); mjsource.NewFrame += mjsource_NewFrame; mjsource.Start(); } else { mjsource.Stop(); mjsource = null; } }