J2MEStreaming How to implement streaming via HTTP protocal in GPRS?
Of course if the streaming media is not support partial data play (ex. midi sound), we can`t do anything about it, right?
But how about if the media can play partial data (ex. arm sound), can we do it?
Here comes a wonderful J2ME application. Remember that we are not talking about RTSP/MMS, we are dealing with HTTP.
The idea is very simple. We open two thread, one thread is for download the data, the other thread is play the data that already downloaded so far.
Once the first chunk of data is available, we play it. When finished play the first chunk of data, we play the second available chunk of data, and so on.
If your mobile phone phone support two players, the play will be more smooth. The data is dynamically fetched into the next player.
Well you may ask "If finished play the first part of data and there is no second part data available which can be likely happened via airtime GPRS, what to do?", just play the first part data again right!
Once the data is 100% downloaded, you can always replay again and again.
There is no need for special treatment of the host server that provide the media.
Yeah, you can play from any media server with this application.
Like it? Share with your friends!
EMobiStudio NetworkAcc NetworkAcc is a powerful mobile network accelerator specially designed for
MobyExplorer Powerful File Manager and FTP & FTPS Client for Java J2ME devices. Includes military strength File Encryption, Text Editor integrated with Encryption engine, Zip support, Remote Editing, Write Protection, Hidden Files etc
DigitURL DigitURL allows you to access websites from your phone using numeric web addresses. These can be much easier to enter on your phone, especially if the original URL is long and complicated. Get more info and initialize addresses at DigitURL.com