[jdev] Regarding XMPP Voice Message Processing
zcw at mypmlive.com
Sun May 10 04:52:12 CDT 2009
We want to develop the IM application base on XMPP, and the Client application will run on the Mobile OS(such as Symbian, Windows Mobile, J2ME, etc).
Now I am facing one problem about the voice message:
We hope our application can send the voice message(like Voice SMS), from one client to another client through the Server, maybe we can encode the voice data to Base64.
The server, we're planing to use OpenFire.
As everybody know, the Mobile GPRS bandwidth is very sensitive, so the scenario will be like this:
1. Mobile Record the voice as one buffer or file in AMR codec.
2. Client A, send this data to Client B （maybe put the data into special message stanza）, the data should be sent to the server first (as all message will through server transfer to another client)
3. The XMPP server will not directly send the data to Client B first, but story the data, and notify the Client B, now there is one voice data coming to you(including Client As's JID, time stamp, and maybe voice message ID, etc)
4. Client B if want to receive the voice message, then send the request to the XMPP server, then the XMPP server will push the voice data to Client B.
This is our idea, but we didn't know how we can do and use which protocols. is anybody can help us. Thanks very much.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the JDev