Hello every body
Please help me in this problem
My app will receive an media (audio or video) file, that existing on the server, as array of bytes then store it into Record Store as multiple records, after that app need to read the stored media file from the Record Store(multiple records) and accumulate in single input stream. And use that input stream to play media file using Manager.createPlayer(Inputstream,string).
I want to know how can i read multiple records from Record Store and accumulate in single input stream.
...
RecordStore store;
int id;
// play back from a record store
try {
InputStream is = new ByteArrayInputStream
(store.getRecord(id));
Player player = Manager.createPlayer(is, "audio/X-wav");
p.start();
}
catch (IOException ioe) {
}
catch (MediaException me) {
}
...
The above piece of code is read single record and store it in inputstream.
Please help me.It's very urgent.

Reply With Quote

