public void Run() { try { // Create manager object - make sure you have the correct MD3 file for your Nikon DSLR (see https://sdk.nikonimaging.com/apply/) NikonManager manager = new NikonManager("Type0003.md3"); // Listen for the 'DeviceAdded' event manager.DeviceAdded += manager_DeviceAdded; // Wait for a device to arrive _waitForDevice.WaitOne(); // Hook up video events _device.VideoFragmentReady += _device_VideoFragmentReady; _device.VideoRecordingInterrupted += _device_VideoRecordingInterrupted; // Start video recording _device.LiveViewEnabled = true; _device.StartRecordVideo(); // Record for a while... Thread.Sleep(TimeSpan.FromSeconds(4.0)); // Stop video recording _device.StopRecordVideo(); _device.LiveViewEnabled = false; // Wait for the video download to complete _waitForVideoCompleted.WaitOne(); // Shutdown manager.Shutdown(); } catch (NikonException ex) { Console.WriteLine(ex.Message); } }