Lastfm is a service that a lot of people use to track what they listen. They can know that they have listen to Highway to Hell 12 times, that they listen a lot of ABBA or that's Salsa is their favorite genre.
It can make report like the ones by Spotify.
It would be nice if you add Lastfm. Can be cool for your users!
I drop the code that I have used for my own music player. The user has to provide an API key and a shared secret that he gets from the Lastfm UI. For the rest, open the LastfmDialog and it should be clear enough (lol it is not).
In your code, you will track when the a new music is played and when it finished.
When a new music is played, we send the information. After 15s or at the end of the song, we "scrobble" It means we send a track info to the Lastfm server.
Lastfm is a service that a lot of people use to track what they listen. They can know that they have listen to
Highway to Hell
12 times, that they listen a lot of ABBA or that's Salsa is their favorite genre.It can make report like the ones by Spotify.
It would be nice if you add Lastfm. Can be cool for your users!
I drop the code that I have used for my own music player. The user has to provide an API key and a shared secret that he gets from the Lastfm UI. For the rest, open the LastfmDialog and it should be clear enough (lol it is not).
In your code, you will track when the a new music is played and when it finished.
When a new music is played, we send the information. After 15s or at the end of the song, we "scrobble" It means we send a track info to the Lastfm server.
Something like that
And that's the widget I use to connect to Lastfm.