SpotifyAPI-NET icon indicating copy to clipboard operation
SpotifyAPI-NET copied to clipboard

ResumePlayback Issues - Documentation Error and Question

Open MartinHarran opened this issue 8 years ago • 2 comments

First of all, the documentation in player.md gives the following usage example for ResumePlayback:

ErrorResponse error = _spotify.ResumePlayback(uris: new List { "spotify:track:4iV5W9uYEdYUVa79Axb7Rh" });

That, however, throws an "ambiguous call" error as the final parameter (offset) is required.

Secondly, I want to resume a paused player exactly where it is paused in a playlist but cannot for the life of me figure out how to do that. Am I missing something obvious or is that not supported?

MartinHarran avatar Aug 15 '18 21:08 MartinHarran

I think _spotify.ResumePlaybackAsync(offset: "") should do it.

Edit: ResumePlayback(offset: "") should work too.

h-philip avatar Aug 15 '18 21:08 h-philip

Thanks, @h-philip, that's exactly what I wanted - I reckoned I was probably missing something obvious :)

Documentation will still need fixed though.

MartinHarran avatar Aug 15 '18 22:08 MartinHarran