You Are Here:

Community: Developer Discussion Boards

#1 Old Unhappy Playing RTP Stream in J2ME ?? - 2009-04-13, 01:16

Join Date: Apr 2009
Posts: 1
sali87
Offline
Registered User
Hello,

I am currently trying to play voice streamed from PC as RTP packets (codec is g.711) to the mobile in J2ME. The following is the development environment I am using:
- Netbeans 6.5 with S60 3rd Edition Feature Pack 1 SDK

I have managed to REGISTER & INVITE using SIP and initiated a call to the PC client through Asterisk as an SIP Proxy.
Now I got the ports and started recieving RTP packets (over udp) and extracted the 12 byte header for each packet.

So, I have the raw voice data which need to be played. As I understood, the player cannot play them as they are and I need to add a header at the beginning. I tried adding 24 byte header to play the data as audio/au but without any result.

I'm using the custom RTPDataSource and RTPSourceStream abailable by Vikram Goyal here(with some modification as he is using it for RTSP streaming):
http://today.java.net/pub/a/today/20...g-java-me.html
But the problem is that the player stucks at player.realize() ?!

Another solution suggested from my readings proposes that two players should be used.. But I cannot understand how to code this?

Do you have any suggestions?

I am new to J2ME and MIDlets so please bear with me..
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
Similar Threads
Thread Thread Starter Forum Replies Last Post
player freeze when playing from stream jdesmedt Mobile Java Media (Graphics & Sounds) 5 2009-02-06 10:32
Playing DRM encrypted audio via J2ME ewaldvdw Mobile Java Media (Graphics & Sounds) 2 2008-10-30 13:36
A problem about RTP api jery16 Streaming and Video 0 2008-10-13 10:22
suckho, i have encontered the same problems. Could you tell me how you resolved it? dicson_hu Symbian Networking & Messaging 4 2005-12-09 11:56
6600 gprs 发送大量rtp延时问题 dicson_hu Symbian 9 2005-11-04 03:12

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: qdcZidentifierQSxhttpE3aE2fE2fdiscussionE2eforumE2enokiaE2ecomE2fforumE2fshowthreadE2ephpE3ftE3d134434X 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