Example #1
0
 /// <summary>
 /// Instantiates a camera ready to be managed by its camera manager.
 /// </summary>
 /// <param name="cameraConfig">The configuration of the camera to be instantiated.</param>
 /// <returns>A running <c>Vstarcam_C7823WIP</c> camera</returns>
 public override BaseCamera Build(CameraConfig cameraConfig)
 {
     if (this.Instance == null)
     {
         this.Instance = new Vstarcam_C7823WIP(cameraConfig.IpAddress, cameraConfig.UserName, cameraConfig.Password, cameraConfig.CameraName, cameraConfig.OnvifPort);
     }
     return(this.Instance);
 }
        public override BaseCamera Build(string onvif_wsdl_path, Dictionary <string, string> settings)
        {
            var camera_ip_address = settings["ip_addr"];
            var username          = settings["username"];
            var password          = settings["password"];
            var camera_name       = settings["camera_name"];
            var onvif_port        = settings["onvif_port"];

            if (this._instance == null)
            {
                this._instance = new Vstarcam_C7823WIP(camera_ip_address, username, password, camera_name, onvif_port, onvif_wsdl_path);
            }
            return(this._instance);
        }
Example #3
0
 /// <summary>
 /// constructor
 /// </summary>
 public Vstarcam_C7823WIPCameraBuilder()
 {
     this.Instance = null;
 }