```cpp
result = captureSession->CommitConfig();
```
8、开启预览和录像
```cpp
result = captureSession->Start();
result = ((sptr<VideoOutput> &)videoOutput)->Start();
```
**准备切换摄像头**
9、同一个采集会话再次重新开始配置
```cpp
result = captureSession->BeginConfig();
```
10、移除采集会话中原有的输入和输出
```cpp
result = captureSession->RemoveInput((sptr<CaptureInput> &)cameraInput);
result = captureSession->RemoveOutput((sptr<CaptureOutput> &)previewOutput);
result = captureSession->RemoveOutput((sptr<CaptureOutput> &)videoOutput);
```