vtuis/lcvtplugin/src/base/clcvtsession.cpp
changeset 39 7510ce99d5ea
parent 36 f5f903566743
child 45 1d2da8828aa6
equal deleted inserted replaced
36:f5f903566743 39:7510ce99d5ea
   283         VideoSendingKey = KAllwaysAllow;
   283         VideoSendingKey = KAllwaysAllow;
   284         }
   284         }
   285     delete repository;
   285     delete repository;
   286     
   286     
   287     iIndicatorCtr = new  ( ELeave ) LcVtIndicatorController();
   287     iIndicatorCtr = new  ( ELeave ) LcVtIndicatorController();
       
   288     
       
   289     iForeGroundStatus = EFalse;
       
   290     
   288     __VTPRINTEXIT( "CLcVtSession.ConstructL" )
   291     __VTPRINTEXIT( "CLcVtSession.ConstructL" )
   289     
   292     
   290     }
   293     }
   291 
   294 
   292 // -----------------------------------------------------------------------------
   295 // -----------------------------------------------------------------------------
   952 
   955 
   953 TInt CLcVtSession::SetForegroundStatus( TBool aIsForeground )
   956 TInt CLcVtSession::SetForegroundStatus( TBool aIsForeground )
   954 {
   957 {
   955     __VTPRINTENTER( "CLcVtSession.SetForegroundStatus" )
   958     __VTPRINTENTER( "CLcVtSession.SetForegroundStatus" )
   956     __VTPRINT2( DEBUG_MEDIA , "    foreground: %d", aIsForeground )
   959     __VTPRINT2( DEBUG_MEDIA , "    foreground: %d", aIsForeground )
       
   960     
       
   961     iForeGroundStatus = aIsForeground;
   957 
   962 
   958     if ( iRwGroup )
   963     if ( iRwGroup )
   959         {
   964         {
   960         TInt priority = aIsForeground ? ECoeWinPriorityNormal : ECoeWinPriorityNeverAtFront;
   965         TInt priority = iForeGroundStatus ? ECoeWinPriorityNormal : ECoeWinPriorityNeverAtFront;
   961         iRwGroup->SetOrdinalPosition( 1 , priority );
   966         iRwGroup->SetOrdinalPosition( 1 , priority );
   962         iRemoteVideoWindow->SetOrdinalPosition( 1 , priority );
   967         iRemoteVideoWindow->SetOrdinalPosition( 1 , priority );
   963         iLocalVideoWindow->SetOrdinalPosition( 1 , priority );
   968         iLocalVideoWindow->SetOrdinalPosition( 1 , priority );
   964         iRwSession.Flush();
   969         iRwSession.Flush();
   965         }
   970         }
  1233             aNextState = EVtSessionAnsweredStartViewFinder;            
  1238             aNextState = EVtSessionAnsweredStartViewFinder;            
  1234             }
  1239             }
  1235             break;
  1240             break;
  1236         case EVtSessionAnsweredDoPrepareCamera:
  1241         case EVtSessionAnsweredDoPrepareCamera:
  1237             {
  1242             {
  1238             MVtEngMedia& media = iModel->Media();
       
  1239             MVtEngMedia::TMediaSource source = MVtEngMedia::EMediaCamera;
  1243             MVtEngMedia::TMediaSource source = MVtEngMedia::EMediaCamera;
  1240             ActiveExecInitPrepareCameraL( source, aRequest );
  1244             ActiveExecInitPrepareCameraL( source, aRequest );
  1241             aNextState = EVtSessionAnsweredSetlectCamera;
  1245             aNextState = EVtSessionAnsweredSetlectCamera;
  1242             }
  1246             }
  1243             break;
  1247             break;
  1886 #ifdef NGA_VIDEO_RENDER
  1890 #ifdef NGA_VIDEO_RENDER
  1887 
  1891 
  1888 void CLcVtSession::UpdateRenderingParametersL()
  1892 void CLcVtSession::UpdateRenderingParametersL()
  1889     {
  1893     {
  1890     __VTPRINTENTER( "CLcVtSession.UpdateRenderingParametersL" )
  1894     __VTPRINTENTER( "CLcVtSession.UpdateRenderingParametersL" )
  1891     
  1895             
  1892     iRwGroup->SetOrdinalPosition( 1 , ECoeWinPriorityNormal );
  1896     TInt priority = iForeGroundStatus ? ECoeWinPriorityNormal : ECoeWinPriorityNeverAtFront;
       
  1897     
       
  1898     iRwGroup->SetOrdinalPosition( 1 , priority );
  1893     
  1899     
  1894     TRect RMRect = RemoteVideoPlayer()->LcWindow()->LcWindowRect();
  1900     TRect RMRect = RemoteVideoPlayer()->LcWindow()->LcWindowRect();
  1895     iRemoteVideoWindow->SetExtent( RMRect.iTl, RMRect.Size() ); 
  1901     iRemoteVideoWindow->SetExtent( RMRect.iTl, RMRect.Size() ); 
  1896     iRemoteVideoWindow->SetOrdinalPosition( 1 , ECoeWinPriorityNeverAtFront );
  1902     iRemoteVideoWindow->SetOrdinalPosition( 1 , priority );
  1897     iRemoteVideoWindow->SetTransparencyAlphaChannel();
  1903     iRemoteVideoWindow->SetTransparencyAlphaChannel();
  1898     
  1904     
  1899     __VTPRINT2( DEBUG_MEDIA , "    RemoteVideoPlayer.RMRect.iTl.iX: %d", RMRect.iTl.iX )
  1905     __VTPRINT2( DEBUG_MEDIA , "    RemoteVideoPlayer.RMRect.iTl.iX: %d", RMRect.iTl.iX )
  1900     __VTPRINT2( DEBUG_MEDIA , "    RemoteVideoPlayer.RMRect.iTl.iY: %d", RMRect.iTl.iY )
  1906     __VTPRINT2( DEBUG_MEDIA , "    RemoteVideoPlayer.RMRect.iTl.iY: %d", RMRect.iTl.iY )
  1901     __VTPRINT2( DEBUG_MEDIA , "    RemoteVideoPlayer.RMRect.iWidth: %d", RMRect.Width() )
  1907     __VTPRINT2( DEBUG_MEDIA , "    RemoteVideoPlayer.RMRect.iWidth: %d", RMRect.Width() )
  1902     __VTPRINT2( DEBUG_MEDIA , "    RemoteVideoPlayer.RMRect.iHeight: %d", RMRect.Height() )    
  1908     __VTPRINT2( DEBUG_MEDIA , "    RemoteVideoPlayer.RMRect.iHeight: %d", RMRect.Height() )    
  1903     
  1909     
  1904     
  1910     
  1905     TRect VFRect = LocalVideoPlayer()->LcWindow()->LcWindowRect();
  1911     TRect VFRect = LocalVideoPlayer()->LcWindow()->LcWindowRect();
  1906     iLocalVideoWindow->SetExtent( VFRect.iTl, VFRect.Size() );
  1912     iLocalVideoWindow->SetExtent( VFRect.iTl, VFRect.Size() );
  1907     iLocalVideoWindow->SetOrdinalPosition( 1, ECoeWinPriorityNeverAtFront );
  1913     iLocalVideoWindow->SetOrdinalPosition( 1, priority );
  1908     iLocalVideoWindow->SetTransparencyAlphaChannel();
  1914     iLocalVideoWindow->SetTransparencyAlphaChannel();
  1909     
  1915     
  1910     __VTPRINT2( DEBUG_MEDIA , "    LocalVideoPlayer.VFRect.iTl.iX: %d", VFRect.iTl.iX )
  1916     __VTPRINT2( DEBUG_MEDIA , "    LocalVideoPlayer.VFRect.iTl.iX: %d", VFRect.iTl.iX )
  1911     __VTPRINT2( DEBUG_MEDIA , "    LocalVideoPlayer.VFRect.iTl.iY: %d", VFRect.iTl.iY )
  1917     __VTPRINT2( DEBUG_MEDIA , "    LocalVideoPlayer.VFRect.iTl.iY: %d", VFRect.iTl.iY )
  1912     __VTPRINT2( DEBUG_MEDIA , "    LocalVideoPlayer.VFRect.iWidth: %d", VFRect.Width() )
  1918     __VTPRINT2( DEBUG_MEDIA , "    LocalVideoPlayer.VFRect.iWidth: %d", VFRect.Width() )