Implement Progress Bar

This commit is contained in:
aditya-K2
2023-04-13 05:40:40 +05:30
parent d6142372a1
commit 2c85b0aa76
5 changed files with 161 additions and 2 deletions

View File

@@ -25,6 +25,8 @@ var (
sptauth.ScopePlaylistModifyPrivate,
sptauth.ScopePlaylistReadPrivate,
sptauth.ScopePlaylistReadCollaborative,
sptauth.ScopeUserReadPlaybackState,
sptauth.ScopeUserModifyPlaybackState,
sptauth.ScopeUserLibraryModify,
sptauth.ScopeUserLibraryRead,
sptauth.ScopeUserReadPrivate,

View File

@@ -213,3 +213,7 @@ func CurrentUserSavedTracks(errHandler func(err error)) (*LikedSongs, error) {
func RecentlyPlayed() ([]spotify.RecentlyPlayedItem, error) {
return Client.PlayerRecentlyPlayedOpt(ctx(), &spotify.RecentlyPlayedOptions{Limit: 50})
}
func GetPlayerState() (*spotify.PlayerState, error) {
return Client.PlayerState(ctx())
}