mirror of
https://github.com/PepperDash/Essentials.git
synced 2026-02-15 20:54:55 +00:00
Removed add camera to device manager
This commit is contained in:
@@ -2003,8 +2003,7 @@ namespace PepperDash.Essentials.Devices.Common.VideoCodec.Cisco
|
|||||||
camera.SetCapabilites(cam.Capabilities.Options.Value);
|
camera.SetCapabilites(cam.Capabilities.Options.Value);
|
||||||
}
|
}
|
||||||
|
|
||||||
Cameras.Add(camera);
|
Cameras.Add(camera);
|
||||||
DeviceManager.AddDevice(camera);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -2012,13 +2011,9 @@ namespace PepperDash.Essentials.Devices.Common.VideoCodec.Cisco
|
|||||||
var farEndCamera = new CiscoFarEndCamera(Key + "-cameraFar", "Far End", this);
|
var farEndCamera = new CiscoFarEndCamera(Key + "-cameraFar", "Far End", this);
|
||||||
Cameras.Add(farEndCamera);
|
Cameras.Add(farEndCamera);
|
||||||
|
|
||||||
SelectedCameraFeedback = new StringFeedback(() => SelectedCamera.Key);
|
SelectedCameraFeedback = new StringFeedback(() => SelectedCamera.Key);
|
||||||
|
|
||||||
SelectedCamera = Cameras[0]; ; // call the method to select the camera and ensure the feedbacks get updated.
|
ControllingFarEndCameraFeedback = new BoolFeedback(() => SelectedCamera is IAmFarEndCamera);
|
||||||
|
|
||||||
ControllingFarEndCameraFeedback = new BoolFeedback(() => SelectedCamera is IAmFarEndCamera);
|
|
||||||
|
|
||||||
DeviceManager.AddDevice(farEndCamera);
|
|
||||||
|
|
||||||
NearEndPresets = new List<CodecRoomPreset>(15);
|
NearEndPresets = new List<CodecRoomPreset>(15);
|
||||||
|
|
||||||
@@ -2031,6 +2026,8 @@ namespace PepperDash.Essentials.Devices.Common.VideoCodec.Cisco
|
|||||||
FarEndRoomPresets.Add(new CodecRoomPreset(i, label, true, false));
|
FarEndRoomPresets.Add(new CodecRoomPreset(i, label, true, false));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
SelectedCamera = Cameras[0]; ; // call the method to select the camera and ensure the feedbacks get updated.
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#region IHasCodecCameras Members
|
#region IHasCodecCameras Members
|
||||||
|
|||||||
Reference in New Issue
Block a user