Discussion Board

Results 1 to 7 of 7
  1. #1
    Registered User cxl_symbian's Avatar
    Join Date
    Dec 2008
    Posts
    20
    hello everyone!
    I can changge my Screen to horizontal mode with "CAknAppUiBase::SetOrientationL(EAppUiOrientationLandscape)".
    but i don't know how to draw the video image on the screen. which function i need to modify?
    who can help me! i have been troubled for a long time.

  2. #2
    Registered User zql1982's Avatar
    Join Date
    Jan 2005
    Posts
    56
    gc fun:
    SetOrientation(CFbsBitGc::EGraphicsOrientationRotated90);

  3. #3
    Registered User cxl_symbian's Avatar
    Join Date
    Dec 2008
    Posts
    20
    Quote Originally Posted by zql1982 View Post
    gc fun:
    SetOrientation(CFbsBitGc::EGraphicsOrientationRotated90);
    Thanks for your reply,but i can't have the video image still! can you help me check again?

  4. #4
    Registered User zql1982's Avatar
    Join Date
    Jan 2005
    Posts
    56
    code(eg CFbsBitGc):
    .h
    CFbsBitmapDevice *iBackBufferDevice; //设备
    CFbsBitGc *iBackBitmapGc;
    CFbsBitmap *iBackBitmap;
    .c
    in ConstructL fun

    TDisplayMode displayMode = CEikonEnv::Static()->ScreenDevice()->DisplayMode();
    iBackBitmap = new(ELeave) CFbsBitmap();
    User::LeaveIfError(iBackBitmap->Create(TSize(320,240), displayMode));
    iFbsScreenDevice = CFbsScreenDevice::NewL(ibuffer,displayMode);
    iFbsScreenDevice->CreateContext(iFbsScreenGc);
    iFbsScreenGc->SetOrientation(CFbsBitGc::EGraphicsOrientationRotated90);

    draw
    void CMyAppView::BilBit()
    {
    iFbsScreenGc->BitBlt(TPoint(0,0),iBackBitmap,TRect(0,0,320,240));
    iFbsScreenDevice->Update();
    }

  5. #5
    Registered User Sorcery-ltd's Avatar
    Join Date
    Dec 2006
    Posts
    2,280
    How are you tring to play the video? CVideoPlayerUtility? It should work.

    Sorcery

  6. #6
    Registered User cxl_symbian's Avatar
    Join Date
    Dec 2008
    Posts
    20
    Quote Originally Posted by Sorcery-ltd View Post
    How are you tring to play the video? CVideoPlayerUtility? It should work.

    Sorcery
    yes ,i use the class "CVideoPlayerUtility",but i can't have the image when it is horizontal one.

    can you tell me how to soloved my problem?

  7. #7
    Registered User Sorcery-ltd's Avatar
    Join Date
    Dec 2006
    Posts
    2,280
    On which device?

    What resolution is the video? Assuming the window you are giving the CVideoPlayerUtility still fits on the screen (co-ordinates work from the new top-left corner once the screen is rotated) then it ought to work I think. I haven't tried this myself though. I've only ever used landscape mode for fullscreen video via RealPlayer (and that is slightly different).

    Sorcery

Similar Threads

  1. centering video from server on screen - Sizing
    By js001 in forum Mobile Java Media (Graphics & Sounds)
    Replies: 3
    Last Post: 2008-04-18, 11:59
  2. Play video on Canvas with N 6600 doesnt work. Please help!!!
    By Robert111 in forum Mobile Java Media (Graphics & Sounds)
    Replies: 2
    Last Post: 2006-02-22, 08:45

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved