Skip to content

GetCurrentlyPlaying issue #811

Closed Answered by bradlol-1
bradlol-1 asked this question in Q&A
Discussion options

You must be logged in to vote

I FOUND OUT THE SOLUTION AFTER LIKE 20 HOURS!

                var current = new PlayerCurrentlyPlayingRequest(PlayerCurrentlyPlayingRequest.AdditionalTypes.Track);
                var currentlyplaying = await _spotify.Player.GetCurrentlyPlaying(current);

                IPlayableItem s = currentlyplaying.Item;
                if(s is FullTrack track1)
                {
                    Console.WriteLine(track1.Name);
                }

you gotta make sure that the IPlayableItem is a track before specifying its track properties

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@JohnnyCrazy
Comment options

Answer selected by bradlol-1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants