rtp/rtpstack/src/rtpapi.cpp
changeset 33 b8a7e07b2677
parent 30 d7640adb246b
--- a/rtp/rtpstack/src/rtpapi.cpp	Mon Jun 28 19:10:29 2010 +0300
+++ b/rtp/rtpstack/src/rtpapi.cpp	Fri Jul 09 13:15:39 2010 +0300
@@ -389,6 +389,56 @@
     {
     return iManager->SendRtpPacket( aTranStreamId, aHeaderInfo, aPayloadData, aStatus );
     }
+	
+
+// ---------------------------------------------------------------------------
+// TInt CRtpAPI::RegisterRtpPostProcessingObserver()
+// 
+// ---------------------------------------------------------------------------
+//
+EXPORT_C TInt CRtpAPI::RegisterRtpPostProcessingObserver( TRtpId aSessionId,
+                                    MRtpPostProcessingObserver& aRtpPacketObserver )
+    {
+    return iManager->RegisterRtpPostProcessingObserver( aSessionId, aRtpPacketObserver );
+    }
+
+
+// ---------------------------------------------------------------------------
+// CRtpAPI::UnregisterRtpPostProcessingObserver()
+// 
+// ---------------------------------------------------------------------------
+//
+EXPORT_C void CRtpAPI::UnregisterRtpPostProcessingObserver( TRtpId aSessionId )
+    {
+    iManager->UnregisterRtpPostProcessingObserver( aSessionId );
+    }   
+
+
+// ---------------------------------------------------------------------------
+// TInt CRtpAPI::SendRtpPacket()
+// 
+// ---------------------------------------------------------------------------
+//
+EXPORT_C TInt CRtpAPI::SendRtpPacket(const TRtpSendPktParams& aSendPktParam , TArray<TRtpCSRC> aCSRCList)
+    {
+    if(!aSendPktParam.iStatus)
+        {
+		//SYNC Version
+        return iManager->SendRtpPacket( aSendPktParam.iTranStreamId, aSendPktParam.iHeaderInfo, 
+                                              aSendPktParam.iPayloadData, &aCSRCList );
+        }
+    else if (!aSendPktParam.iSequenceNum) //ASYNC Versions With and Without SEQ Number
+        {
+        return iManager->SendRtpPacket( aSendPktParam.iTranStreamId, aSendPktParam.iHeaderInfo, 
+                                              aSendPktParam.iPayloadData, *aSendPktParam.iStatus, &aCSRCList  );
+        }
+    else
+        {
+        return iManager->SendRtpPacket( aSendPktParam.iTranStreamId, *aSendPktParam.iSequenceNum, aSendPktParam.iHeaderInfo, 
+                                              aSendPktParam.iPayloadData, *aSendPktParam.iStatus, &aCSRCList );
+        }
+    }
+
 
 // ---------------------------------------------------------------------------
 // TInt CRtpAPI::SendData()