mmsharing/livecommsui/lcui/tsrc/dummymusengineplugin/src/musenglivesession.cpp
branchRCL_3
changeset 23 bc78a40cd63c
parent 22 73a1feb507fb
child 24 6c57ef9392d2
equal deleted inserted replaced
22:73a1feb507fb 23:bc78a40cd63c
     1 /*
       
     2 * Copyright (c) 2005 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description: 
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 // USER
       
    20 #include "musenglivesession.h"
       
    21 #include "lcsessionobserver.h"
       
    22 #include "musenglogger.h"
       
    23 #include "musengremotevideoplayer.h"
       
    24 #include "musenglivevideoplayer.h"
       
    25 #include "svptimer.h"
       
    26 
       
    27 
       
    28 const TInt KMusEngJitterBufferLength = 51; //Must be bigger than treshold
       
    29 // Using following value increases treshold buffer to 1 second from 
       
    30 // default 100 ms
       
    31 const TInt KMusEngJitterBufferTreshold = 50;
       
    32 
       
    33 const TUint32 KMusEngTwoWayReceivingActivityTimeout = 5000; // 5 seconds
       
    34 // 6 seconds keepalive timer, needs to be more than receiving timeout
       
    35 const TUint8 KMusEngTwoWayRtpKeepAliveTimer = 6; 
       
    36 
       
    37 // -----------------------------------------------------------------------------
       
    38 //
       
    39 // -----------------------------------------------------------------------------
       
    40 //
       
    41 CMusEngLiveSession* CMusEngLiveSession::NewL()
       
    42     {
       
    43     CMusEngLiveSession* self = new( ELeave )CMusEngLiveSession();
       
    44     CleanupStack::PushL( self );
       
    45     self->ConstructL();
       
    46     CleanupStack::Pop( self );
       
    47     return self;
       
    48     }
       
    49 
       
    50 // -----------------------------------------------------------------------------
       
    51 //
       
    52 // -----------------------------------------------------------------------------
       
    53 //
       
    54 CMusEngLiveSession::~CMusEngLiveSession()
       
    55     {
       
    56     MUS_LOG( "mus: [ENGINE]  -> CMusEngLiveSession::~CMusEngLiveSession()" )
       
    57     
       
    58     MUS_LOG( "mus: [ENGINE]  <- CMusEngLiveSession::~CMusEngLiveSession()" )
       
    59     }
       
    60 
       
    61 // -----------------------------------------------------------------------------
       
    62 // 
       
    63 // -----------------------------------------------------------------------------
       
    64 //
       
    65 void CMusEngLiveSession::EnableDisplayL( TBool aEnable )
       
    66     {
       
    67     MUS_LOG1( "mus: [ENGINE]     -> CMusEngLiveSession::EnableDisplayL() %d", 
       
    68               aEnable )
       
    69         
       
    70     MUS_LOG( "mus: [ENGINE]  <- CMusEngLiveSession::EnableDisplayL()")
       
    71     }
       
    72 
       
    73 // -----------------------------------------------------------------------------
       
    74 //
       
    75 // -----------------------------------------------------------------------------
       
    76 //        
       
    77 void CMusEngLiveSession::SetOrientationL( TDisplayOrientation aOrientation )
       
    78     {
       
    79     MUS_LOG1( "mus: [ENGINE]  -> CMusEngLiveSession::SetOrientationL() %d", 
       
    80               aOrientation )
       
    81                   
       
    82 
       
    83     MUS_LOG( "mus: [ENGINE]  <- CMusEngLiveSession::SetOrientationL()" )
       
    84     }
       
    85 
       
    86 
       
    87 // -----------------------------------------------------------------------------
       
    88 //
       
    89 // -----------------------------------------------------------------------------
       
    90 //
       
    91 void CMusEngLiveSession::SetRectsL( 
       
    92     const TRect& aRemoteRect,
       
    93     const TRect& aLocalRect )
       
    94     {
       
    95     MUS_LOG( "mus: [ENGINE]  -> CMusEngLiveSession::SetRectsL()" )  
       
    96          
       
    97     MUS_LOG( "mus: [ENGINE]  <- CMusEngLiveSession::SetRectsL()" )
       
    98     }
       
    99 
       
   100 
       
   101 // -----------------------------------------------------------------------------
       
   102 //
       
   103 // -----------------------------------------------------------------------------
       
   104 //
       
   105 CMusEngLiveSession::CMusEngLiveSession() 
       
   106     : CMusEngMceSession()
       
   107     {
       
   108     }
       
   109 
       
   110 // -----------------------------------------------------------------------------
       
   111 //
       
   112 // -----------------------------------------------------------------------------
       
   113 //
       
   114 void CMusEngLiveSession::ConstructL()
       
   115     {
       
   116     MUS_LOG( "mus: [ENGINE]  -> CMusEngLiveSession::ConstructL()" )
       
   117     
       
   118     CMusEngMceSession::ConstructL();
       
   119     
       
   120     MUS_LOG( "mus: [ENGINE]  <- CMusEngLiveSession::ConstructL()" )
       
   121     }
       
   122 
       
   123 // -----------------------------------------------------------------------------
       
   124 // 
       
   125 // -----------------------------------------------------------------------------
       
   126 //
       
   127 void CMusEngLiveSession::EstablishLcSessionL()
       
   128     {
       
   129     MUS_LOG( "mus: [ENGINE]  -> CMusEngLiveSession::EstablishLcSessionL" )
       
   130 
       
   131     iTimer = CSVPTimer::NewL( *this, 1 ); 
       
   132     iTimer->SetTime(2000);
       
   133     
       
   134     MUS_LOG( "mus: [ENGINE]  <- CMusEngLiveSession::EstablishLcSessionL" )
       
   135     }
       
   136 
       
   137 // -----------------------------------------------------------------------------
       
   138 // 
       
   139 // -----------------------------------------------------------------------------
       
   140 //
       
   141 void CMusEngLiveSession::TerminateLcSessionL()
       
   142     {
       
   143     MUS_LOG( "mus: [ENGINE]  -> CMusEngLiveSession::TerminateLcSessionL" )
       
   144     
       
   145     MUS_LOG( "mus: [ENGINE]  <- CMusEngLiveSession::TerminateLcSessionL" )
       
   146     }
       
   147 
       
   148 
       
   149 // End of file