Updating Playlist
When prediction results (which is audio features, in our case) were calculated and delivered, Spotify API will recommend songs which mostly matched these features. We can obtain the five recommend tracks and add them to the iCarRadio playlist. Furthermore, we monitor the number of played songs. When there are only two unplayed songs left in the playlist, we add five more recommended songs based on the real-time conditions to the playlist.