I will attempt to build a setlist/event retransmission and live broadcast tool for the giggles and for an excuse to use AS3. So far, the plan is as follows:
- Script streams random music to a RED5 RTMP server
- NGINX-RTMP handles actual multicast RTMP and HLS emulation
- People listen.
I’ll go back over this as I get working on it, but for now, this post will detail how I seeded a music discovery API and the code to use it.
Out of the major music providers on the internet, Google Play is the only site not providing a search API. What if you’d like to easily retrieve links? The easy solution is to build one. The end-result could be something like this:
One recurrent problem with Google APIs is their very tight restrictions. One of them is Google Places, which not only restricts the developer to a maximum of 60 results (at the cost of 1 query credit per 20), but also limits to 1k queries per day (100k once verified). This is an annoying limit, and if it wasn’t just this, their API terms state the following:
- No caching. No static data. No short-term data caching. Nothing.
- No modification of data (i.e. no server-side processing to correlate queries)
To bypass some of these, I’ve built a small tool to do composite queries. Feel free to play with it (but you’ll need a Google Places API key. They’re free to get on the API console):
If you’d like to know how it works, read more!