rtp/rtpstack/src/rtpapi.cpp
changeset 33 b8a7e07b2677
parent 30 d7640adb246b
equal deleted inserted replaced
30:d7640adb246b 33:b8a7e07b2677
   387                                       const TDesC8& aPayloadData,
   387                                       const TDesC8& aPayloadData,
   388                                       TRequestStatus& aStatus )
   388                                       TRequestStatus& aStatus )
   389     {
   389     {
   390     return iManager->SendRtpPacket( aTranStreamId, aHeaderInfo, aPayloadData, aStatus );
   390     return iManager->SendRtpPacket( aTranStreamId, aHeaderInfo, aPayloadData, aStatus );
   391     }
   391     }
       
   392 	
       
   393 
       
   394 // ---------------------------------------------------------------------------
       
   395 // TInt CRtpAPI::RegisterRtpPostProcessingObserver()
       
   396 // 
       
   397 // ---------------------------------------------------------------------------
       
   398 //
       
   399 EXPORT_C TInt CRtpAPI::RegisterRtpPostProcessingObserver( TRtpId aSessionId,
       
   400                                     MRtpPostProcessingObserver& aRtpPacketObserver )
       
   401     {
       
   402     return iManager->RegisterRtpPostProcessingObserver( aSessionId, aRtpPacketObserver );
       
   403     }
       
   404 
       
   405 
       
   406 // ---------------------------------------------------------------------------
       
   407 // CRtpAPI::UnregisterRtpPostProcessingObserver()
       
   408 // 
       
   409 // ---------------------------------------------------------------------------
       
   410 //
       
   411 EXPORT_C void CRtpAPI::UnregisterRtpPostProcessingObserver( TRtpId aSessionId )
       
   412     {
       
   413     iManager->UnregisterRtpPostProcessingObserver( aSessionId );
       
   414     }   
       
   415 
       
   416 
       
   417 // ---------------------------------------------------------------------------
       
   418 // TInt CRtpAPI::SendRtpPacket()
       
   419 // 
       
   420 // ---------------------------------------------------------------------------
       
   421 //
       
   422 EXPORT_C TInt CRtpAPI::SendRtpPacket(const TRtpSendPktParams& aSendPktParam , TArray<TRtpCSRC> aCSRCList)
       
   423     {
       
   424     if(!aSendPktParam.iStatus)
       
   425         {
       
   426 		//SYNC Version
       
   427         return iManager->SendRtpPacket( aSendPktParam.iTranStreamId, aSendPktParam.iHeaderInfo, 
       
   428                                               aSendPktParam.iPayloadData, &aCSRCList );
       
   429         }
       
   430     else if (!aSendPktParam.iSequenceNum) //ASYNC Versions With and Without SEQ Number
       
   431         {
       
   432         return iManager->SendRtpPacket( aSendPktParam.iTranStreamId, aSendPktParam.iHeaderInfo, 
       
   433                                               aSendPktParam.iPayloadData, *aSendPktParam.iStatus, &aCSRCList  );
       
   434         }
       
   435     else
       
   436         {
       
   437         return iManager->SendRtpPacket( aSendPktParam.iTranStreamId, *aSendPktParam.iSequenceNum, aSendPktParam.iHeaderInfo, 
       
   438                                               aSendPktParam.iPayloadData, *aSendPktParam.iStatus, &aCSRCList );
       
   439         }
       
   440     }
       
   441 
   392 
   442 
   393 // ---------------------------------------------------------------------------
   443 // ---------------------------------------------------------------------------
   394 // TInt CRtpAPI::SendData()
   444 // TInt CRtpAPI::SendData()
   395 // 
   445 // 
   396 // ---------------------------------------------------------------------------
   446 // ---------------------------------------------------------------------------