Hi All
Is it possible to implement RTP in J2ME?.Is it possible to send and receive RTP packet in real time? Is there anyway to transfer JMF in J2ME?
BR
Javed
Hi All
Is it possible to implement RTP in J2ME?.Is it possible to send and receive RTP packet in real time? Is there anyway to transfer JMF in J2ME?
BR
Javed
Hi Javed,
you can use RTSP protocol to do streaming, using MMAPIs (http://java.sun.com/products/mmapi/), only on phones that support this protocol (like S60 from 2nd Edition Feature Pack 3 onwards)
To check if a phone supports it, you can use Manager getSupportedProtocols() method.
Regards,
Pit
So, on the device you tested RTSP is not supported
Pit
Is there anyone who can give me update information about RTP in J2ME?
BR
Javed
RTP is not support on Nokia's devices from MIDlets. New devices support RTSP streaming though (S60 2nd Ed FP3 -> and Series 40 3rd Edition FP2 ->)
You could likely implement RTP protocol over TCP or UDP also using Java ME, but I do not know if would do you any good.
Hartti
@Hartti Thanks for your reply
My issues are as...........................
1. Actually I mean using record control (JSR 135) to record audio and send it to another client. I realize that until I make commit in record control I can't access to recorded bytes.
Is there any way to get these bytes without stopping the recording?
Please see in JMF how this is done
http://snippets.dzone.com/user/irla/tag/java
But in J2ME how it can be done?
2. As far as i know that talkonaut( http://www.talkonaut.com/home.shtml) is also done by J2ME. How did they complete the realtime Audio part??????
Regards
Javed
1) Unfortunately no.
2) Do not know, I have not used the app so I do not even know how streamlined and interactive the Java version is.
Hartti
@Harrti
I got information about talkonaut.They did it through CallBack technique of Java. Have you any idea on it?
I think with callback they mean having a native part in C++ and calling from Java or so. I have heared that a couple of times in different forums already.
Fact is that J2ME does not support RTP streaming from the phone to any other target. And it is also right, that the MMAPI is not able to access the bytes before stopping the recorder. I think this is due to the implementation - because it also uses CallBacks to native (C++) methods to access the microphone.
I think at the beginning having no RTP in J2ME was decided due to the fact that the mobiles were not computational powerful enought to handle coding and decoding while accessing microphone and cam to get the audio and video. So real time streaming would not have been possible.
But with new phones such as E75 and N97 there should be not computational performance problem, so I hope it will be taken from the JMF to MMAPI(next Version)!! Or maybe Nokia goes it's own way in providing it to developers??
best,
Christian
Hi:
Check out mmapi.
http://developers.sun.com/mobility/m...mmapioverview/
Regards
Guillermo