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 } |
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() ) |