public void StartLiveStream(int channel) { ThrowIfNotConnected(); DeviceDriverProxy proxy = _proxy; if (proxy == null) { proxy = new DeviceDriverProxy(_uri.ToString(), _userName, _scrambledPassword); } proxy.Client.StartLiveStream(channel, new Dictionary <string, string>()); _proxy = proxy; }
private void BuildBaseProxy() { if (_proxy != null) { try { _proxy.Client.Close(); } catch (Exception) { } } string uriString = new UriBuilder(_uri.Scheme, _uri.DnsSafeHost, _uri.Port, "DeviceService").ToString(); DeviceDriverProxy proxy = new DeviceDriverProxy(uriString, _userName, _scrambledPassword); _proxy = proxy; }