multimediacommscontroller/mmccrtpsourcesink/src/mccrtpdatasource.cpp
branchRCL_3
changeset 59 b0e4b01681c5
parent 42 817c922b90eb
equal deleted inserted replaced
55:f72c4fccd381 59:b0e4b01681c5
    17 
    17 
    18 
    18 
    19 
    19 
    20 
    20 
    21 // INCLUDE FILES
    21 // INCLUDE FILES
    22 #include <in_sock.h> 
    22 #include <in_sock.h>
    23 #include <mmf/common/mmfcontroller.h>
    23 #include <mmf/common/mmfcontroller.h>
    24 
    24 
    25 #include "rtpapi.h"
    25 #include "rtpapi.h"
    26 #include "mccrtpdatasource.h"
    26 #include "mccrtpdatasource.h"
    27 #include "mccinternalevents.h"
    27 #include "mccinternalevents.h"
   252         
   252         
   253         // Do jitter calculations
   253         // Do jitter calculations
   254         if ( iJitCalc->IsObserving() )
   254         if ( iJitCalc->IsObserving() )
   255             {
   255             {
   256             iJitCalc->RtpPacketReceived( aHeaderInfo.iTimestamp,
   256             iJitCalc->RtpPacketReceived( aHeaderInfo.iTimestamp,
   257                                          aHeaderInfo.iMarker,
   257                                          aHeaderInfo.iMarker );
   258                                          aHeaderInfo.iSeqNum );
       
   259             }
   258             }
   260             
   259             
   261         // First packet after SourcePlayL, notify event handler by sending
   260         // First packet after SourcePlayL, notify event handler by sending
   262         // the event.
   261         // the event.
   263         if ( !iDlStreamStarted )
   262         if ( !iDlStreamStarted )
   850 
   849 
   851 // -----------------------------------------------------------------------------
   850 // -----------------------------------------------------------------------------
   852 // CMccRtpDataSource::SendJitterEvent()
   851 // CMccRtpDataSource::SendJitterEvent()
   853 // -----------------------------------------------------------------------------
   852 // -----------------------------------------------------------------------------
   854 //	
   853 //	
   855 void CMccRtpDataSource::SendJitterEvent( TMccRtpEventDataExtended aEvent, TInt aError )
   854 void CMccRtpDataSource::SendJitterEvent( TMccRtpEventData aEvent, TInt aError )
   856     {
   855     {
   857     TRACE_RTP_SOURCE_PRINT( "CMccRtpDataSource::SendJitterEvent" )
   856     TRACE_RTP_SOURCE_PRINT( "CMccRtpDataSource::SendJitterEvent" )
   858 
   857 	    
   859 	SendJitterEventToClient( iEventHandler,
   858 	SendInternalRtpEventToClient( iEventHandler,
   860 	                         KMccRtpSourceUid, 
   859 	                              KMccRtpSourceUid, 
   861                              EMccInternalJitterEventStatusReport, 
   860                                   EMccInternalJitterEventStatusReport, 
   862                              KMccMediaQualityStatus,
   861                                   KMccMediaQualityStatus,
   863                              MCC_RTPSOURCE_ENDPOINT_ID,
   862                                   MCC_RTPSOURCE_ENDPOINT_ID,
   864                              aError,
   863                                   aError,
   865                              aEvent.iJitterEstimate,
   864                                   aEvent.iJitterEstimate,
   866                              aEvent.iPacketsReceived,
   865                                   aEvent.iPacketsReceived,
   867                              aEvent.iPrevTransTime,
   866                                   aEvent.iPrevTransTime,
   868                              aEvent.iTriggeredJitterLevel,
   867                                   aEvent.iTriggeredJitterLevel );
   869                              aEvent.iPacketLoss,
       
   870                              aEvent.iTriggeredPacketLoss );
       
   871     }  
   868     }  
   872 
   869 
   873 // -----------------------------------------------------------------------------
   870 // -----------------------------------------------------------------------------
   874 // CMccRtpDataSource::SourceCustomCommand()
   871 // CMccRtpDataSource::SourceCustomCommand()
   875 // 
   872 //