04-28-2011 03:10 PM
I'm planning out some projects and was looking through the JavaDocs and noticed one thing and had an idea for another:
Solved! Go to Solution.
04-29-2011 09:37 AM
Ok, so based on http://supportforums.blackberry.com/t5/Java-Develo
So, as for the other question, does anyone know if it is possible to "add" support for other audio formats (as stated in the previous post)?
05-25-2011 11:44 AM
So I saw in your thread on it.
Now to know if it's possible to implement an unsupported audio format with the built in Player (instead of writing my own player).
05-26-2011 01:23 AM
> to add an audio format by wrapping the audio stream and converting it to a supported format on the fly?
yes, you can use whatever internal format you want to transfer the audio data, all you need to do is to convert it to "known" format before providing the audio data to the player.
05-26-2011 11:15 AM
That's what I thought. I assume this would be done within a DataSource?
05-27-2011 02:19 PM - edited 05-27-2011 02:20 PM
InputStream would definitly be easier but DataSource would offer more "options" such as seeking and would be more managable when dealing with different content types and sources.
The way I look at it is (for something like streaming):
InputStream: Open input stream, read data (block until enough data has buffered, provide data), do all cleanup in close function
DataSource: Create data source, Connect (start buffering data), Start (provide data), Stop (stop providing data but continue to buffer if more data is avalible), Disconnect (stop buffering, close streams, free buffers).
I like options so knowing it would work with an InputStream is good to know. Thank you.
EDIT: I'll mark this as the solution since my questions where anwsered by 2 different people.
06-03-2011 08:21 PM
Yes. Using input stream is easier. However, some BB device does not work with InputStream player. Just find that out the other day on the 8520. Don't know what the reason is. DataSource does work though.
06-03-2011 08:23 PM