[CDS API] - Playing back transcoded Audio
Second question is more implementation, what is the best way to detect when I have finished downloading the complete audio file?
I have the following in a loop, but inputStream.read(buf) doesn't return on the final (or I suppose final+1) read. Looking online, I either need to know the content length, which won't happen, or the server needs to close the connection.