android - How to stream audio to Amazon S3? -
i wrote voice recorder application. want write audio data directly amazon s3 file in realtime. see aws sdk android has appropriate function it: public upload upload(string bucketname, string key, inputstream input, objectmetadata objectmetadata)
. there said "when uploading data stream, callers must supply size of data in stream". so, work when don't know size of stream @ moment of recording?
, if not, there other solutions?
due way amazon s3 stores data (it different average file system), don't think continuous stream possible.
but pass recording chunks. voice recorder start recording file, switch file once first file has reached size. upload first file while second recording. once second file reached size, switch third , upload second, , on , on.
Comments
Post a Comment