public void RecordFileTestMethod() { var videoDevice = videoDeviceManager.GetVideoDeviceById(0); videoEncoder.SetVideoSource(videoDevice); var audioDevice = audioDeviceManager.GetAudioDeviceById(0); aacEncoder.SetAudioDataSource(audioDevice); Record record = new Record(videoEncoder, aacEncoder); Assert.IsTrue(record.StartRecord(@"test.mp4")); Thread.Sleep(3000); Assert.IsTrue(record.StopRecord()); }
public void ShouldGetLocalVideoDeviceByDeviceId() { IVideoDeviceManager videoDeviceManager = Resolve <IVideoDeviceManager>(); IVideoDevice videoDevice = videoDeviceManager.GetVideoDeviceById(0); Assert.IsNotNull(videoDevice); Assert.IsTrue(videoDevice.ID == 0); videoDeviceManager.Dispose(); }