Commit Graph

5 Commits

Author SHA1 Message Date
Alessandro Attard Barbini
dd77be8a8a Added support for proxy configuration (#224)
* Create ProxyConfig class + Unit tests

* Use ProxyConfig in SpotifyLocalAPI

* Refactor WebProxy creation in ProxyConfig

* Use ProxyConfig in SpotifyWebAPI

* Add ProxyConfig parameter in GetAlbumArt methods

* Add ProxyConfig to WebAPIFactory

* Add proxy settings to Example app

* Fix ArgumentNullException in GetAlbumArtUrl when not using proxy

* Performed requested changes

- Removed redundant "this".
- Added necessary null checks.
- Added a ProxyConfig property to SpotifyLocalAPIConfig and removed constructor overloads with it in SpotifyLocalAPI and RemoteHandler.

* Updated Example app
2018-03-25 19:39:19 +02:00
Alessandro Attard Barbini
159b60331e Fixed occasional COMException in GetSpotifyVolumeObject (#222)
* Added volume controls in Example app

* Fixed occasional COMException when using Get- or SetSpotifyVolume

This exception only happens if Spotify is using an audio device different from the default one. Such a thing is only possible (as of v1.0.75.483.g7ff4a0dc) when using the "--enable-audio-graph" command line argument, that makes available the "Playback device" advanced option in Spotify.
2018-03-12 00:08:37 +01:00
Johnny @PC
8d274164c4 Tweaked SpotifyURI, moved parsing to a static method 2016-03-21 15:48:50 +01:00
Johnny Dellinger @PC
d1f1923738 Fixed crash on adverts, Closes #34 2015-10-01 17:28:40 +02:00
Johnny Dellinger @PC
45c71544f9 Full Rewrite & Cleanup (New documentation follows) 2015-07-07 18:11:11 +02:00