Closed gytanzo closed 3 years ago
Spotify seems to be the most promising right now. For starters, they have an API that has extensive documentation.
Apple Music also has an API with documentation, but the documentation (on top of being less user friendly) seems to be a lot less extensive.
YouTube is probably out, as we're looking for around 30 second clips of these songs. YouTube would also pose the risk of videos getting taken down, whether it be on our end via copyright infringement or because of the video itself just getting taken down.
Because of the reasons above, I believe Spotify is our best option. As noted to the team a few days ago, Spotify has documentation for a web app they called Thirtify, where they show off functionality for playing 30 second clips of songs. This web app's code is also open source.
http://lab.possan.se/thirtify/#/ https://github.com/possan/webapi-player-example
Given that this functionality is almost exactly what we are looking for, I believe this is a very valuable resource. I emailed Jesse if we could use this web app as a reference and was told "As long as you're using their code as a reference and learning from it, and not copying their code, that I am ok with this."
I will investigate the Spotify API for information as to how one would actually play these previews tomorrow. I believe this link may be useful.
https://developer.spotify.com/documentation/
I apologize for how brief this research is, I intend to make it up next week in preparation for Sprint 2's demo.
It is both difficult and unnecessary to play the entire song for the user to guess. Rather, in order for rounds to be quick and concise, it makes more sense for a short preview of the song, maybe around 30 seconds, to instead be played.
The findings should be presented to the team during the meeting on the 14th.