×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    Jan 2008
    Posts
    19

    Exclamation Using Symbian SDK RTP - Callback doesnt fire.!!

    Hi all, have written a symbian code with RRtpSession(rtp.h) provided by SDK Symbian.

    get access point and open socket/server...!! works fine

    TUint32 rAddr = INET_ADDR(195,11,85,187);
    iRemoteAddr.SetAddress(rAddr);
    iRemoteAddr.SetPort(7720);

    //open a RTP session and initialize
    User::LeaveIfError(m_SockServ.Connect(KESockDefaultMessageSlots));

    User::LeaveIfError(m_Connection.Open(m_SockServ, nnectionTypeDefault));

    User::LeaveIfError(m_Connection.Start());

    TRAPD(err, m_rtpSession.OpenL(m_SockServ, iDeviceAddr, iRemoteAddr, 2048, m_Connection));


    m_rtpSession.SetMaxRXSize(2048);
    m_rtpSession.SetRtpStreamParameters(10, 100, 1000);

    m_rtpSession.PrivRegisterEventCallbackL((TUint)(ERtpNewSource|ERtpOneShot), &SRtpCapture::StartReceiveStreamL, (TAny*)this);
    if (m_rtpSession.IsOpen())
    {
    m_rtpSession.PrivRegisterEventCallbackL((TUint)(ERtpNewSource|ERtpOneShot), &SRtpCapture::StartReceiveStreamL, (TAny*)this);
    }

    CActiveScheduler::Add(this);
    CEikonEnv::Static()->AlertWin(_L16("Rtp_Opened"));


    but Callback doenst get fired ..! when it receives RTP packet..!??

  2. #2
    Regular Contributor
    Join Date
    May 2007
    Posts
    468

    Re: Using Symbian SDK RTP - Callback doesnt fire.!!

    You might give a try with S60 RTP,
    take a look at SDK API Plugin.

    Jack

  3. #3
    Nokia Developer Moderator
    Join Date
    Sep 2007
    Posts
    123

    Re: Using Symbian SDK RTP - Callback doesnt fire.!!

    3rd edition fp2 Beta SDK has an RTP example that demonstrates sending and receiving RTP data. The example locates at \S60_3rd_FP2_Beta\Examples\MultimediaProtocols\RTPExample\.

    In the example receiving RTP data goes like this:

    first register ERtpNewSource event:
    Code:
    iRtpSession.PrivRegisterEventCallbackL(ERtpNewSource, (TRtpCallbackFunction)CRtpFileStreamer::NewSource, this);

    When CRtpFileStreamer::NewSource gets called: old source is closed, a new source gets fetched and ERtpPacketReceived event is registered:
    Code:
    CRtpFileStreamer::NewSource(CRtpFileStreamer* aPtr, const TRtpEvent& aEvent)
    	{
    	if (aPtr->ReceiveSrc().IsOpen())
    		{
    		aPtr->ReceiveSrc().Close();
    		}
    	TRAPD(err,
    		aPtr->ReceiveSrc() = aEvent.Session().NewReceiveSourceL();
    		aPtr->ReceiveSrc().PrivRegisterEventCallbackL(ERtpPacketReceived, (TRtpCallbackFunction)CRtpFileStreamer::PacketArrived, aPtr);)
    	}

Similar Threads

  1. Can we import RTP library from SDK 3.1 into SDK 3.0
    By engineer_sherif in forum VoIP
    Replies: 6
    Last Post: 2007-06-03, 02:01
  2. Replies: 1
    Last Post: 2007-04-27, 13:29
  3. S90 MIDP SDK 1.0 Beta MMAPI Problem
    By kfalck in forum Mobile Java Tools & SDKs
    Replies: 0
    Last Post: 2004-06-21, 19:44
  4. Series 60Series 60 MIDP Concept SDK Beta 0.2 Linux bug?
    By kauppi in forum Mobile Java Tools & SDKs
    Replies: 3
    Last Post: 2003-04-07, 09:05

Posting Permissions

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