×

Discussion Board

Results 1 to 11 of 11
  1. #1
    Registered User
    Join Date
    Sep 2006
    Posts
    39

    Looking for CRtpAPI code example

    Hi everybody,

    Have anybody had success with CRtpAPI APIs from extension pack? Nokia said, that we should use these APIs in order to make RTP transactions.

    I can create, open and initialize RTP session, but no RTP/RTCP packets in observer. Should I do something special. Nokia, hello, you leaves us with 3 headers and almost no documentation and there are only 4 links for CRtpAPI in google. Can anybody just explain how to use these APIs?

    Is own RTP stack the only solution?

    Payu Sergey

  2. #2
    Registered User
    Join Date
    Sep 2006
    Posts
    39

    Re: Looking for CRtpAPI code example

    Hi everybody,

    Looks like I finally beat these APIs. Right now I can send/receive RTP/RTCP packets perfectly.

    Thanks,
    Payu Sergey

  3. #3
    Registered User
    Join Date
    Jul 2007
    Posts
    4

    Re: Looking for CRtpAPI code example

    Here is the quick guide for using Nokia Rtp
    1. Open RTP

    iRtpApi = CRtpAPI::NewL( ..)
    iRtpApi->OpenL( ..);
    iRtpApi->StrartConnection( ..);

    2. CreateSession
    iRtpApi->CreateSessionL( .. );

    if RTCP is enabled

    iRtpApi->RegisterRtcpObserver( );

    if non-rtp packet will be received with the same port then
    iRtpApi->SetNonRTPDataObserver ( ...)

    3. Set Remote address
    iRtpApi->SetRemoteAddress( ..);

    4. CreateStream
    iRtpApi->CreateReceiveStreamL(..);
    iRtpApi->CreateTransmitStreamExtL(..);

    Use this function if ssrc is not specified
    iRtpApi->CreateTransmitStreamL(..)

    5.Start Session
    To start session, there must be one stream created already.
    If no receive stream created then the incoming packets will not be received
    iRtpApi->StartSession( aSessionId );

    6. Start Stream
    iRtpApi->StartSession( aSessionId );

    7. Remove Stream
    CloseStreamL(..);

    8. Send RTCP packet
    Set session bandwidth or rtcp fraction
    iRtpApi->SetRtcpParameters(..);
    iRtpApi->SendRtcpByePacket( .. );
    iRtpApi->SendRtcpAppPacket( .. );
    iRtpApi->SendRtcpSrPacket( .. );
    iRtpApi->SendRtcpRrPacket( .. );

    9 Suspend RTCP
    iRtpApi->SuspendRtcpSending( .. )

    10 Resum RTCP
    With autoSending parameter as ETrue.
    iRtpApi->SuspendRtcpSending(..)

    11. GetRTCP status
    iRtpApi->IsRtcpSendingSuspended( .. );

    12. Send NonRtpData
    some data can be send to same remote address with RTP
    iRtp->SendDataL( ..);

    13 Send Rtp Packet
    iRtpApi->SendRtpPacket( ..);

    14.Close session
    CloseSession(..);
    or delete session

    15. Close RTP
    delete iRtpApi;

  4. #4
    Registered User
    Join Date
    May 2007
    Posts
    45

    Re: Looking for CRtpAPI code example

    Hi all,

    how could you use CRtpAPI?
    I downloaded extension plugin for 3rd ed fp1, but if i want to install it in existing sdk, .lib files are put in epoc32\release\armv5\lib, while all libraries are in epoc32\release\winscw\udeb and so i can't use them. If i try to copy libraries in correct directories, when i build project i have compiling errors!

    Thanks in advance,

    Alessio

  5. #5
    Regular Contributor
    Join Date
    Apr 2007
    Posts
    50

    Re: Looking for CRtpAPI code example

    Hi,


    Paste the compiling Errors ,may be i can help u out.I Just set the CRtpAPI on my system but i'm decided to work on RtpSession.I got N95 and this phone 9.2 and supports this framework.

    Haroon Azmat

  6. #6
    Registered User
    Join Date
    Sep 2006
    Posts
    39

    Re: Looking for CRtpAPI code example

    Libraries are built for DEVICE only. While you are trying to build your project for WINS. Once again, this plugin can be used only for target building.

  7. #7
    Registered User
    Join Date
    May 2007
    Posts
    45

    Re: Looking for CRtpAPI code example

    Ok. Thanks

    Alessio

  8. #8
    Regular Contributor
    Join Date
    Apr 2007
    Posts
    50

    Re: Looking for CRtpAPI code example

    Hi ChuanW and payu.sergey,

    can u give me little clue how can u able to receviev RTP packet,means ur observer is called. I use ether real to trace and sniff the packet and I'm sure packet is reachable but observer is not called please pay ur little attention on my thread and help me in it to get out of that.

    I've started a new thread with this problem please atleast comment on it to keep this thread moving.That would be helpful for next ones.

    hear is my thread...

    http://discussion.forum.nokia.com/fo...d.php?t=113432

    Thanks inadvance ,
    Haroon Azmat

  9. #9
    Registered User
    Join Date
    Jul 2007
    Posts
    31

    Re: Looking for CRtpAPI code example

    Quote Originally Posted by hazmat View Post
    Hi ChuanW and payu.sergey,

    can u give me little clue how can u able to receviev RTP packet,means ur observer is called. I use ether real to trace and sniff the packet and I'm sure packet is reachable but observer is not called please pay ur little attention on my thread and help me in it to get out of that.

    I've started a new thread with this problem please atleast comment on it to keep this thread moving.That would be helpful for next ones.

    hear is my thread...

    http://discussion.forum.nokia.com/fo...d.php?t=113432

    Thanks inadvance ,
    Haroon Azmat
    Hello Haroon,

    What capture filter in ethereal do you use to trace rtp packets?

    Thanks in advance and good luck with the observer

  10. #10
    Regular Contributor
    Join Date
    Apr 2007
    Posts
    50

    Re: Looking for CRtpAPI code example

    I'm tracing UDP packets and Ethereal shows me in UDP protocol filter.

    Haroon

  11. #11
    Registered User
    Join Date
    Jul 2007
    Posts
    31

    Re: Looking for CRtpAPI code example

    Quote Originally Posted by hazmat View Post
    I'm tracing UDP packets and Ethereal shows me in UDP protocol filter.

    Haroon
    Thanks a lot. Do you mean that it's not possible to trace rtp content of udp packets?

Similar Threads

  1. Replies: 2
    Last Post: 2007-10-05, 20:40
  2. Link errors when trying to Display bitmap
    By Bkc82 in forum Symbian Media (Closed)
    Replies: 1
    Last Post: 2006-01-16, 22:46
  3. How to handle a response with HTTP status code 100 (Continue)?
    By danieldkim in forum Mobile Java General
    Replies: 5
    Last Post: 2004-01-19, 10:54
  4. Replies: 0
    Last Post: 2003-09-26, 15:07

Posting Permissions

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