I write a MIDlet on my nokia 6600 to play an amr file.
My MIDlet simulate streaming via a SourceStream specific implementation.
I use a SourceStream and a DataSource to hide to the player the data download system.
I simulate the streaming using a double buffer and downloading data by http in SourceStream.
My application works fine, it download amr file via http and play it well.
My problem is I don't know how to force player to use my SourceStream as a stream flow.
Player call SourceStream::read(byte[] b, int off, int len) function in PREFETCH state and not in STARTED state so it download all amr file data before playing.
My content type is "audio/amr".
Do you know how can I force Player to stream my SourceStream data for example on configuring it with a special option ?
I want to avoid rtp streaming or is it the single solution ?