// Start receiving video frames public void Start() { videoSource.Start(); if (thread == null) { // create events stopEvent = new ManualResetEvent(false); execEvent = new ManualResetEvent(false); // create and start new thread thread = new Thread(new ThreadStart(WorkerThread)); thread.Name = this.controlCommand; thread.IsBackground = true; thread.Start(); JPEGSource.SetAllowUnsafeHeaderParsing20(); } }
// Constructor public FujikoCamera() { videoSource = new MJPEGSource(); JPEGSource.SetAllowUnsafeHeaderParsing20(); streamType = StreamType.MJpeg; }
// Constructor public DLinkCamera() { videoSource = new JPEGSource(); JPEGSource.SetAllowUnsafeHeaderParsing20(); streamType = StreamType.Jpeg; }