rtp/rtpstack/src/rtptranstream.cpp
branchRCL_3
changeset 44 0dcb073356a5
parent 43 b5e99d8877c7
child 33 b8a7e07b2677
equal deleted inserted replaced
43:b5e99d8877c7 44:0dcb073356a5
   185 //
   185 //
   186 TInt CRtpTranStream::BuildRtpPacket( const TRtpSendHeader& aHeaderInfo,
   186 TInt CRtpTranStream::BuildRtpPacket( const TRtpSendHeader& aHeaderInfo,
   187                                      const TDesC8& aPayloadData,
   187                                      const TDesC8& aPayloadData,
   188                                      TRtpSequence aSeqNum,
   188                                      TRtpSequence aSeqNum,
   189                                      TBool aSetSeqNum,
   189                                      TBool aSetSeqNum,
   190                                      CRtpPacket* aPktSnd,
   190                                      CRtpPacket* aPktSnd )
   191                                      const TArray<TRtpCSRC> *aCsrcList)
       
   192     {
   191     {
   193     TRtpPacketStreamParam streamParam;
   192     TRtpPacketStreamParam streamParam;
   194     TRtpPacketIOParam inParam;
   193     TRtpPacketIOParam inParam;
   195 
   194 
   196     if ( FirstPkg() )
   195     if ( FirstPkg() )
   233 
   232 
   234     inParam.TRTP.marker = aHeaderInfo.iMarker; 
   233     inParam.TRTP.marker = aHeaderInfo.iMarker; 
   235 
   234 
   236     inParam.TRTP.payloadData = const_cast<TUint8*>( aPayloadData.Ptr() );
   235     inParam.TRTP.payloadData = const_cast<TUint8*>( aPayloadData.Ptr() );
   237     inParam.TRTP.payloadDataLen = aPayloadData.Length();
   236     inParam.TRTP.payloadDataLen = aPayloadData.Length();
   238     
       
   239     if(aCsrcList && aCsrcList->Count())
       
   240         {
       
   241         // Maxm 15 CSRC identifiers will be supported
       
   242         if( aCsrcList->Count() <= KMaxCsrcIdentifiers )
       
   243             {
       
   244             inParam.TRTP.numCSRC = (TUint8)aCsrcList->Count();
       
   245             }
       
   246         else
       
   247             {
       
   248             inParam.TRTP.numCSRC = KMaxCsrcIdentifiers;
       
   249             }
       
   250         
       
   251         inParam.TRTP.iCsrcList = aCsrcList;
       
   252         }
       
   253 
   237 
   254     streamParam.TRTP.payload = aHeaderInfo.iPayloadType;
   238     streamParam.TRTP.payload = aHeaderInfo.iPayloadType;
   255 
   239 
   256     if ( aSetSeqNum )
   240     if ( aSetSeqNum )
   257         {
   241         {