Hello,
I want to play a video during an incoming call. It works on Nokia 6680 firmware v 2.04.15 but not on Nokia 6680 firmware v 3.04.35.
I don’t understand because it shows the Status Pane and the Control Pane of my application but it doesn’t play the video.
To bring my application to the foreground, I implemented the AppUi like this:
void CVideoAppUi::HandleForegroundEventL( TBool aForeground )
{
// Call Base class method
CAknAppUi::HandleForegroundEventL( aForeground );
if ( !aForeground )
{
BringToForeground();
}
}
void CVideoAppUi::BringToForeground()
{
RWindowGroup * win;
win = & CCoeEnv::Static()->RootWin();
win->SetOrdinalPosition( 0, ECoeWinPriorityAlwaysAtFront );
}
And this is the way I implemented the Container:
void CVideoCallContainer::ConstructL( const TRect & aRect )
{
RWindowGroup iWinGroup = RWindowGroup( CEikonEnv::Static()->WsSession() );
User::LeaveIfError( iWinGroup.Construct( ( TUint32 ) & iWinGroup ) );
iWinGroup.EnableReceiptOfFocus( ETrue );
//iWinGroup.SetOrdinalPosition( 0, KMaxTInt );
CreateWindowL( &iWinGroup );
SetRect( aRect );
iVideoRect = Rect();
TPoint point = PositionRelativeToScreen();
iVideoRect.iTl.iX += point.iX;
iVideoRect.iTl.iY += point.iY;
iVideoRect.iBr.iX += point.iX;
iVideoRect.iBr.iY += point.iY;
iVideoRect.Shrink( 1, 1 );
DrawNow();
ActivateL();
}
Did anyone have the same problem?
Thank you very much.
Bernie



