Commit Graph

25 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
Alessandro Attard Barbini
5ccef6fd14 Raise OnTrackChange event for "other" tracks as well (#204)
* Raise OnTrackChange event for "other" tracks as well

* Add null checks in Example project
2018-01-10 14:56:58 +01:00
Jonas Dellinger
1253d02da7 Switched from WebClient to HTTPClient 2017-05-31 17:31:41 +02:00
Jonas Dellinger
2543ed2f2f Added new player endpoints 2017-05-31 17:31:41 +02:00
Jonas Dellinger
3ebb446745 Added new endpoint "recently played" 2017-03-02 22:28:55 +01:00
Jonas Dellinger
281b684f5f Changed Host to 127.0.0.1 and added SSL workaround 2016-09-30 12:17:19 +02:00
Jack Ryder
31a3b5cdce added collab playlist scope 2016-09-19 20:32:15 +01:00
Jonas Dellinger
ec8b7a3d3d Made some LocalAPI methods async - Updated example, now without SynchronizingObject 2016-09-09 14:56:37 +02:00
Johnny @PC
0f993ceda5 Cleanup HTTPServer and more stuff 2016-07-31 16:24:27 +02:00
Johnny @PC
417869548a Added additional constructor to WebAPIFactory 2016-07-31 16:18:42 +02:00
Jürgen
4699246068 Adapted code style 2016-07-30 00:19:57 +02:00
Jürgen
1699519c95 Renamed AuthenticationFactory to WebApiFactory (better description of what the class does...) 2016-07-24 23:58:45 +02:00
Jürgen
f0290fa037 WebControl with new AuthenticationFactory 2016-07-19 21:16:03 +02:00
Johnny @PC
15d8fd87e2 Merged headers branch 2016-07-07 21:28:02 +02:00
Johnny @PC
ca4bd1edaf Added Top artists/tracks 2016-04-01 14:08:06 +02:00
Johnny @PC
8c0d765eef Added Recommendation Endpoints 2016-04-01 13:23:11 +02:00
Johnny @PC
8d274164c4 Tweaked SpotifyURI, moved parsing to a static method 2016-03-21 15:48:50 +01:00
eltoncezar
fd8572bf93 Typo fix
Forgot to include this in the last commit
2016-03-17 18:58:10 -03:00
Jimmy Appelt
f2048748c3 delegates/events to newer usage 2016-01-07 09:33:40 +01:00
Johnny Dellinger @PC
96bcb7bd36 Some more refactoring. 2015-10-28 17:05:09 +01:00
mrnikbobjeff
3544c34176 Changed Contracts to if-throw-else as requested
Changed use of nullable return types to throw exceptions instead of returning null
2015-10-23 21:25:13 +02:00
Johnny Dellinger @PC
d1f1923738 Fixed crash on adverts, Closes #34 2015-10-01 17:28:40 +02:00
Johnny Dellinger @PC
d8e3238f09 Made port variable and adapted example to use port 8000 2015-09-08 15:35:07 +02:00
Johnny Dellinger @PC
45c71544f9 Full Rewrite & Cleanup (New documentation follows) 2015-07-07 18:11:11 +02:00