×

Discussion Board

Results 1 to 7 of 7
  1. #1
    Regular Contributor
    Join Date
    Apr 2009
    Posts
    442

    How to do Full Screen mode?

    Hi

    I am working on S60 3rd Edition FP2, FP1, MR with carbide C++ 2.0

    I am playing video file in my application with two options.
    1. play in Full Screen Mode.
    2. play in Normal Screen Mode.

    By default video playing in normal mode but when click on full screen mode,

    i am calling "SetExtentToWholeScreen();" but using this screen do not display properly.
    and
    when click on normal View!!! i don't know how to i switched screen in normal mode.

    Please help me how to playing video file in full screen mode and how to switched back to normal view?

    Regards,
    SymbianTH
    Last edited by SymbianTH; 2009-07-08 at 13:02. Reason: Forget working version and sdk

  2. #2
    Nokia Developer Champion
    Join Date
    Jun 2008
    Location
    Noida,India
    Posts
    4,043

    Re: How to do Full Screen mode?

    hi to play your video in full screen mode just do the following in your Appui class's ConstructL func.:

    iAppView = CMYAppView::NewL( ApplicationRect() );

    pass the highlighted parameter instead of ClientRect()

  3. #3
    Regular Contributor
    Join Date
    Apr 2009
    Posts
    442

    Re: How to do Full Screen mode?

    My Code is

    Code:
    AppUi
    --------
    void CVRexAppUi::ConstructL()
    {
        BaseConstructL(EAknEnableSkin);
    .
    .
    .
        CVRexVideoView* view2 = new (ELeave) CVRexVideoView;
        CleanupStack::PushL( view2 );
        view2->ConstructL();
        AddViewL( view2 );      // transfer ownership to CAknViewAppUi
        CleanupStack::Pop(view2);    // view2
    
        //iAppRect = ApplicationRect();
        SetDefaultViewL(*view1);
    }
    
    VideoView.cpp
    --------------
    CVRexVideoView::CVRexVideoView()
    : iEngine(static_cast<CVRexDocument*>(AppUi()->Document())->Engine())
        {
        }
    
    void CVRexVideoView::ConstructL()
        {
        BaseConstructL( R_VIEW2 );
        }
    
    CVRexVideoView::~CVRexVideoView()
        {
        if ( iContainer )
            {
            AppUi()->RemoveFromViewStack( *this, iContainer );
            }
    
        delete iContainer;
        }
    
    void CVRexVideoView::HandleClientRectChange()
        {
        if ( iContainer )
            {
            //As per your suggestion replace "ClientRect()" by "ApplicationRect()".
            iContainer->SetRect( ClientRect() );
            }
        }
    
    //I am Used following method but screen do not display properly.
    void CVRexVideoView::CbaVisible()
    	{
    	AppUi()->StatusPane()->MakeVisible(ETrue);
    	Cba()->MakeVisible(ETrue);
    	}
    
    void CVRexVideoView::CbaNonVisible()
    	{
    	AppUi()->StatusPane()->MakeVisible(EFalse);
    	Cba()->MakeVisible(EFalse); 
    	}
    But my problem is when user click on any option (for e.g. click on "full screen mode" from option menu ) after that perform operation.

    Regards,
    SymbianTH

  4. #4
    Nokia Developer Champion
    Join Date
    Jun 2008
    Location
    Noida,India
    Posts
    4,043

    Re: How to do Full Screen mode?

    so you may try making two functions, one is called when you want to set app to full screen lik this:

    void Yourclass::fuinction1()////call this from handleCommandL for full screen view
    if ( iContainer )
    {

    iContainer->SetRect( ApplicationRect() );
    }
    }

    and similarly other function for normal view with clientRect() in SetRect().

  5. #5
    Regular Contributor
    Join Date
    Apr 2009
    Posts
    442

    Re: How to do Full Screen mode?

    Quote Originally Posted by vineet.jain View Post
    so you may try making two functions, one is called when you want to set app to full screen lik this:

    void Yourclass::fuinction1()////call this from handleCommandL for full screen view
    if ( iContainer )
    {

    iContainer->SetRect( ApplicationRect() );
    }
    }

    and similarly other function for normal view with clientRect() in SetRect().
    if i use iContainer->SetRect( ApplicationRect() ); than following code is required to display video in full screen?

    AppUi()->StatusPane()->MakeVisible(ETrue);
    Cba()->MakeVisible(ETrue);

    When i Wrote only iContainer->SetRect( ApplicationRect() ) and run the application in emulator do not display video in fullscreen.

    Why this happened? what i missed to write?

    Regards.
    SymbianTH

  6. #6
    Nokia Developer Champion
    Join Date
    Jun 2008
    Location
    Noida,India
    Posts
    4,043

    Re: How to do Full Screen mode?

    hi , for showing application in fullscreen mode, you don't have to make any changes in status pane, it by defalut covers your whole screen.Also one thing you don't need to implement any view container class to display video.Just call the class in which you have implemented your video playing from your Appview class.

  7. #7
    Registered User
    Join Date
    Jun 2009
    Posts
    1

    Re: How to do Full Screen mode?

    hi ,

    Along with setting your container window to full screen by calling SetExtentToWholeScreen() ,you also need to set the video player window to full screen and viceversa. This can be done with following method of the CVideoPlayerUtility class .

    void SetDisplayWindowL(RWsSession &aWs, CWsScreenDevice &aScreenDevice, RWindowBase &aWindow, const TRect &aWindowRect, const TRect &aClipRect);

    where

    const TRect &aWindowRect: The dimensions of the display window.

    const TRect &aClipRect : The area of the video clip to display in the window. nothing but you phone diplay window size.

    you can refer to SDK documentation of CVideoPlayerUtility class for more details and usage of the function.

Similar Threads

  1. Screen mode change bug
    By joemarshall in forum Symbian User Interface
    Replies: 5
    Last Post: 2010-09-20, 12:48
  2. plz help : screen mode issue
    By Mark-07 in forum Symbian
    Replies: 0
    Last Post: 2008-11-04, 07:26
  3. how to exit full screen?
    By sunny8285 in forum Symbian User Interface
    Replies: 8
    Last Post: 2008-10-23, 08:24
  4. Full screen listbox skin not rendered correctly
    By template60 in forum Symbian
    Replies: 2
    Last Post: 2007-09-11, 04:34
  5. How to switch off full screen on N93
    By Wacek in forum Streaming and Video
    Replies: 0
    Last Post: 2007-01-17, 14:25

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×