You Are Here:

Community: Developer Discussion Boards

#1 Old Red face How can I use the encodec and decodec provided by Nokia in J2ME? - 2008-09-18, 05:31

Join Date: Sep 2008
Posts: 3
tigeryang
Offline
Registered User
I am a new comer to moblie progamming. And in the C++ library document I got that there are some classes for using codecs and decodes provided below. But I have now idea how I can do this in Java? Because I want to play stream videos and autdios.

By the way, I only see the http exaple when streaming is regarded? Does Nokia sdk support any other protocols such RTP?
If any, is it possible to combine this with the codecs and make a mutimedia play?

Thanks for any idea.
Reply With Quote

#2 Old Re: How can I use the encodec and decodec provided by Nokia in J2ME? - 2008-09-18, 20:01

Join Date: Apr 2003
Posts: 6,408
Location: USA, CA
hartti's Avatar
hartti
Offline
Nokia Expert
Check the MMAPI documentation and implementation notes in here
http://www.forum.nokia.com/document/...rs_Library_v2/

(more specifically
http://www.forum.nokia.com/document/...w-summary.html
and
http://www.forum.nokia.com/document/...80F83E109.html
)

Basically RTSP is supported on newer phones (with MIDP), but not RTP (unfortunately streaming does not work on the emulators, so you need to test on real devices)
Also MIDP implementation does not necessarily support all tghe various file formats supported natively on the device. The system properties help you in there
http://www.forum.nokia.com/document/...0ACF5F95A.html

And no, you cannot add a new codec or the phone's Java ME implementation as there is no low-level access to the loudspeaker, microphone, or camera.

Hartti
Reply With Quote

#3 Old Re: How can I use the encodec and decodec provided by Nokia in J2ME? - 2008-09-19, 03:21

Join Date: Sep 2008
Posts: 3
tigeryang
Offline
Registered User
Hi, hartti
Thanks very much.

I have downloaded the j2me library2.3 document and read some. But as a newbie, I have no idea which part is most revelant to my target. From your answer I get the part that I need to read further.

And for the last question, there may be some misunderstanding. What I want to do is a multimedia conference client using sip and rtp on mobile phones. And there is no existing files on the server. It is just generated realtime. So I was just wondering whether rtp is supported and if it is how can we make the player play the media from the rtp stream or using the codec supported to get the proper media stream for rtp to transfer to server.

Now that rtp is not supported, does it mean that I have to port a rtp stack on to it? Is it possible? or there is other tricky ways?
Reply With Quote

#4 Old Re: How can I use the encodec and decodec provided by Nokia in J2ME? - 2008-09-19, 04:06

Join Date: Apr 2003
Posts: 6,408
Location: USA, CA
hartti's Avatar
hartti
Offline
Nokia Expert
The MMAPI documentation is relevant, as MMAPI is the API used to play/record video and audio. (as I said above it is a really high-level API...)
And in your case, you should also check the SIP API documentation.

Implementing RTP protocol might be possible (to my understanding it is just some extra stuff on top of TCP/IP = socket connection). However the problem will be in getting the Java ME implementation to play the content streamed over RTP continuously. Or to send continuously the recorded content over RTP (as you cannot access the recorded audio/video data until you have stopped the recording).
So basically you have to use the protocols and formats supported by the platform.

Does this help at all, or just make you more confused?

Note also that there are some useful pieces of example code in Forum Nokia Wiki...
http://wiki.forum.nokia.com

Hartti
Reply With Quote

#5 Old Re: How can I use the encodec and decodec provided by Nokia in J2ME? - 2008-09-19, 05:04

Join Date: Sep 2008
Posts: 3
tigeryang
Offline
Registered User
hi, hartti

yes, that is what I want to do and am worried about. And another problem may be the efforts needed to do these tasks as a newbie knowing nothing about mobile programming.

by the way, do you have any IM account? so I can communicate with you in time when I account any other questions?

my msn account:
yangjialin_bupt@hotmail.com
Reply With Quote
Reply « Previous Thread | Next Thread »
Display Modes
Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules

You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Forum Jump

Rate This

 
Bookmark this page: DeliciousDiggFacebookGoogleYahooStumbleUponRedditDiigoTechnocratiTwitter  Share this page Share this page Print this Page Print this page Invite a friend Invite a friend
京ICP备05048969号    Email Newsletters Press Terms & Conditions Privacy Policy Sitemap Contact Us © 2009 Nokia 
RDF Facets: qdcZidentifierQSxhttpE3aE2fE2fdiscussionE2eforumE2enokiaE2ecomhttpE3aE2fE2fdiscussionE2eforumE2enokiaE2ecomE2fforumE2fshowthreadE2ephpE3ftE3d18645X qdcZtypeQUqfnZE45E78cludedFromGeneralE4cistingsQ qdcZtypeQUqfntypeZCommunityContentQ qdcZtypeQUqfntypeZE44iscussionQ qdcZtypeQUqfntypeZE44iscussionContentQ qdcZtypeQUqfntypeZE52esourceQ qdcZtypeQUqfntypeZWebpageQ qdcZtypeQUqmarsZManagedE52esourceQ qdcZtypeQUqwebZInformationE52esourceQ qdcZtypeQUqwebZPageQ qdcZtypeQUqwebZE52esourceQ qdcZtypeQUqrdfsZE52esourceQ qfnZtopicQUqfnTopicZentertainmentQ qfnZtopicQUqfnTopicZj2meQ qfnZtopicQUqfnTopicZjavaQ qfnZtopicQUqfnTopicZmediaQ qfnZtypeQUqfntypeZCommunityContentQ qfnZtypeQUqfntypeZE44iscussionQ qfnZtypeQUqfntypeZE44iscussionContentQ qfnZtypeQUqfntypeZE52esourceQ qfnZtypeQUqfntypeZWebpageQ qmarsZlanguageQUxhttpE3aE2fE2fswE2enokiaE2ecomE2flanguageE2d1E2fenX qrdfZtypeQUqfnZE45E78cludedFromGeneralE4cistingsQ qrdfZtypeQUqfntypeZCommunityContentQ qrdfZtypeQUqfntypeZE44iscussionQ qrdfZtypeQUqfntypeZE44iscussionContentQ qrdfZtypeQUqfntypeZE52esourceQ qrdfZtypeQUqfntypeZWebpageQ qrdfZtypeQUqmarsZManagedE52esourceQ qrdfZtypeQUqwebZInformationE52esourceQ qrdfZtypeQUqwebZPageQ qrdfZtypeQUqwebZE52esourceQ qrdfZtypeQUqrdfsZE52esourceQ