multimediacommscontroller/mmccrtpsourcesink/inc/mccrtpinterface.h
branchRCL_3
changeset 59 b0e4b01681c5
parent 42 817c922b90eb
equal deleted inserted replaced
55:f72c4fccd381 59:b0e4b01681c5
   172         * Configures the source/sink
   172         * Configures the source/sink
   173         * @since Series 60 3.0
   173         * @since Series 60 3.0
   174         * @param aConfig Configuration
   174         * @param aConfig Configuration
   175         * @return void
   175         * @return void
   176         */
   176         */
   177         virtual void ConfigureL( const TDesC8& aConfig, CMccRtpMediaClock* aRtpMediaClock );
   177         virtual void ConfigureL( const TDesC8& aConfig );
   178         
   178         
   179         /**
   179         /**
   180         * Sends RTCP receiver report to uplink if possible.
   180         * Sends RTCP receiver report to uplink if possible.
   181         * @param aStreamId - [input] Stream ID identifying stream
   181         * @param aStreamId - [input] Stream ID identifying stream
   182         * @return One of the standard system-wide error codes.
   182         * @return One of the standard system-wide error codes.
   262         inline MMccRtpInterface() : iRtpAPI( NULL ), iSessionID( KNullId ),
   262         inline MMccRtpInterface() : iRtpAPI( NULL ), iSessionID( KNullId ),
   263             iState( ERtpStateConstructed ), iEnableRtcp( EFalse ), 
   263             iState( ERtpStateConstructed ), iEnableRtcp( EFalse ), 
   264             iEventHandler( NULL ), iCodecInfo(), iMccStreamId( 0 ), 
   264             iEventHandler( NULL ), iCodecInfo(), iMccStreamId( 0 ), 
   265             iMccEvent( TMccEvent() ), iRtpKeepalive( NULL ), iContext( NULL), 
   265             iMccEvent( TMccEvent() ), iRtpKeepalive( NULL ), iContext( NULL), 
   266             iSecSession( NULL ), iSrtpStream( NULL ), iRtpMediaClock( NULL ),
   266             iSecSession( NULL ), iSrtpStream( NULL ), iRtpMediaClock( NULL ),
   267             iContextId( 0 ),
   267             iContextId( 0 )
   268 			iRtpKeepaliveUpdatePending( ETrue )
       
   269             { }
   268             { }
   270             
   269             
   271             
   270             
   272         /**
   271         /**
   273         * Checks the given buffer if it is supported. Leaves with KErrNoMemory
   272         * Checks the given buffer if it is supported. Leaves with KErrNoMemory
   306             {
   305             {
   307             return iState;
   306             return iState;
   308             }
   307             }
   309         
   308         
   310         void CloseStreams();
   309         void CloseStreams();
   311         
       
   312         void SendJitterEventToClient( 	MAsyncEventHandler* aEventHandler,
       
   313                                         TUid aEventOriginator,
       
   314                                         TMccInternalEventType aInternalEventType,
       
   315                                         TMccEventType aEventType,
       
   316                                         TUint32 aEndpointId,
       
   317                                         TInt aError = KErrNone, 
       
   318                                         TUint64 aJitterEstimate = 0,
       
   319                                         TUint32 aPacketsReceived = 0,
       
   320                                         TInt64 aPrevTransTime = 0,
       
   321                                         TUint64 aTriggeredJitterLevel = 0,
       
   322         								TInt aPacketLoss = 0,
       
   323         								TInt aTriggeredPacketLoss = 0 );
       
   324         
   310         
   325         void SendInternalRtpEventToClient( MAsyncEventHandler* aEventHandler,
   311         void SendInternalRtpEventToClient( MAsyncEventHandler* aEventHandler,
   326                                            TUid aEventOriginator,
   312                                            TUid aEventOriginator,
   327                                            TMccInternalEventType aInternalEventType,
   313                                            TMccInternalEventType aInternalEventType,
   328                                            TMccEventType aEventType,
   314                                            TMccEventType aEventType,
   463         
   449         
   464         /*
   450         /*
   465          * Context identifier
   451          * Context identifier
   466          */
   452          */
   467          TUint32 iContextId;
   453          TUint32 iContextId;
   468        
   454 
   469 	   /*
       
   470          * Indicates need for setting media clock for keepalivetimer. 
       
   471          */
       
   472 		TBool iRtpKeepaliveUpdatePending;	 
       
   473 		 
       
   474     private:    // Friend classes
   455     private:    // Friend classes
   475     
   456     
   476         #ifdef TEST_EUNIT
   457         #ifdef TEST_EUNIT
   477             friend class UT_CMccRtpInterface;
   458             friend class UT_CMccRtpInterface;
   478         #endif
   459         #endif