[CDS API] - Playing back transcoded Audio
Posted: Tue Sep 04, 2012 6:29 pm
First question, is the content length for transcoded audio always 900000000 (I need to detect whether I can give a progress update based on percentage)
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.
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.