예제 #1
0
        public void ShouldGetLocalVideoDeviceByDeviceId()
        {
            IVideoDeviceManager videoDeviceManager = Resolve <IVideoDeviceManager>();

            IVideoDevice videoDevice = videoDeviceManager.GetVideoDeviceById(0);

            Assert.IsNotNull(videoDevice);

            Assert.IsTrue(videoDevice.ID == 0);

            videoDeviceManager.Dispose();
        }
예제 #2
0
        public void ShouldGetAllLocalVideoDevices()
        {
            IVideoDeviceManager videoDeviceManager = Resolve <IVideoDeviceManager>();

            var deviceList = videoDeviceManager.GetVideoDevices();

            Assert.IsNotNull(deviceList);

            Assert.IsTrue(deviceList.Any());

            videoDeviceManager.Dispose();
        }
예제 #3
0
 public void SystemShutdownEventHandler(bool b)
 {
     _videoDeviceManager.Dispose();
 }