/// <summary> /// 应用当前代理设置 /// </summary> internal void ApplyProxy() { try { switch (proxyKinds) { case ProxyKinds.Default: ConnectionBase.UseDefaultProxy(); BassEngine.Instance.UseDefaultProxy(); break; case ProxyKinds.None: ConnectionBase.DontUseProxy(); BassEngine.Instance.DontUseProxy(); break; case ProxyKinds.Custom: //ConnectionBase.SetProxy(_player.Settings.ProxyHost, _player.Settings.ProxyPort, _player.Settings.ProxyUsername, _player.Settings.ProxyPassword); //BassEngine.Instance.SetProxy(_player.Settings.ProxyHost, _player.Settings.ProxyPort, _player.Settings.ProxyUsername, _player.Settings.ProxyPassword); break; default: break; } } catch (Exception ex) { } }