ipappprotocols_plat/rtprtcp_api/inc/rtpapi.h
branchRCL_3
changeset 44 0dcb073356a5
parent 43 b5e99d8877c7
child 33 b8a7e07b2677
equal deleted inserted replaced
43:b5e99d8877c7 44:0dcb073356a5
   332         IMPORT_C TInt SendRtpPacket( TRtpId aTranStreamId,
   332         IMPORT_C TInt SendRtpPacket( TRtpId aTranStreamId,
   333                                      TRtpSequence aSequenceNum,
   333                                      TRtpSequence aSequenceNum,
   334                                      const TRtpSendHeader& aHeaderInfo,
   334                                      const TRtpSendHeader& aHeaderInfo,
   335                                      const TDesC8& aPayloadData,
   335                                      const TDesC8& aPayloadData,
   336                                      TRequestStatus& aStatus );
   336                                      TRequestStatus& aStatus );
   337        
   337 
   338         /**
       
   339         * Send an RTP data packet, with a given CSRC list.
       
   340         * @param aHeaderInfo - [input] TRtpSendPktParam and CSRC list.
       
   341         * @return KErrNone if successful; system wide error code otherwise
       
   342         */
       
   343         IMPORT_C TInt SendRtpPacket( const TRtpSendPktParams&  aSendPktParam, 
       
   344                                      TArray<TRtpCSRC>   aCSRCList);
       
   345  
       
   346 
   338 
   347         /**
   339         /**
   348         * Send a non-RTP (control) data packet asynchronously
   340         * Send a non-RTP (control) data packet asynchronously
   349         * @param aSessionId - [input] RTP Session ID
   341         * @param aSessionId - [input] RTP Session ID
   350         * @param aUseRTPSocket - [input] use RTP/RTCP socket
   342         * @param aUseRTPSocket - [input] use RTP/RTCP socket
   539  				/**
   531  				/**
   540         * Dummy function to fix Raptor error 
   532         * Dummy function to fix Raptor error 
   541         * @return KErrNone.
   533         * @return KErrNone.
   542         */
   534         */
   543         IMPORT_C TInt NotInUseSetNonRTPDataObserver( );
   535         IMPORT_C TInt NotInUseSetNonRTPDataObserver( );
   544         
   536                                     
   545         
   537 
   546         /**
       
   547         * Register a callback object for Send RTP data packets from an RTP
       
   548         * Session. Only one Sender callback object is allowed to be
       
   549         * registered for one Session.
       
   550         * MRTPPacketObserver::ReadyToSendRtpPacket function from aRtpObserver object is
       
   551         * called when an RTP data packet is received.
       
   552         * @param aSessionId - [input] RTP Session ID
       
   553         * @param aRtpObserver - [input] Callback object to receive RTP packets
       
   554         * @return KErrNone if successful; system wide error code otherwise
       
   555         */
       
   556         IMPORT_C TInt RegisterRtpPostProcessingObserver( TRtpId aSessionId,
       
   557                 MRtpPostProcessingObserver& aRtpObserver );
       
   558         
       
   559         
       
   560         /**
       
   561         * Unregister RTP Packet observer callback object associated with an RTP
       
   562         * session.
       
   563         * @param aSessionId - [input] RTP Session ID
       
   564         * @return None
       
   565         */
       
   566         IMPORT_C void UnregisterRtpPostProcessingObserver( TRtpId aSessionId );
       
   567         
       
   568     private:
   538     private:
   569         /**
   539         /**
   570         * C++ default constructor.
   540         * C++ default constructor.
   571         */
   541         */
   572         CRtpAPI();
   542         CRtpAPI();