Sunday, March 9, 2014

Code shift

Our focus this week has been figuring out how to get queueing working for our next SGM and the software demo on Thursday. After a full day of cranking away yesterday, we got our app to stream 3 songs in succession (chosen by another phone). However, this behavior did not occur reliably, and while the metadata updated immediately from phone A to phone B (it automatically updates the title and artist names),  the music would begin streaming sporadically with very high latency. Given our current model of using the iOS 7 multipeer connectivity functionality, it seems as though we have to create a new session every time we want to play a new song, as it looks like we are unable to stream multiple songs using the same session.

Feeling pretty blocked, we reached out to an iOS developer who has done something similar, as well as to Paul Hegarty for help. We have been thinking for awhile about utilizing the Spotify API to bypass a lot of the issues we've been experiencing in dealing with local media items. We discussed this strategy as a team and then brought it up with the teaching team, who agreed it would be a good idea to switch to using a 3rd party API to take the path of least resistance to reach an MVP. Jay also mentioned that supporting streaming would be more future-friendly, so we have decided to switch to supporting streaming functionality, and will likely start off with the Spotify API.

No comments:

Post a Comment