Set connection strategy to keep open

Apply to both default camera server and examples.
This commit is contained in:
Peter Johnson
2019-01-11 01:13:09 -08:00
parent 3f2ab23563
commit 0e9d2fbb99
4 changed files with 4 additions and 0 deletions
+1
View File
@@ -162,6 +162,7 @@ cs::UsbCamera StartCamera(const CameraConfig& config) {
config.name, config.path);
camera.SetConfigJson(config.config);
camera.SetConnectionStrategy(cs::VideoSource::kConnectionKeepOpen);
return camera;
}