Discussion Board

Results 1 to 6 of 6
  1. #1
    Regular Contributor zhangwei_Nirvana's Avatar
    Join Date
    Oct 2007
    Posts
    64
    Hi,

    I want open a *.swf in CCoeControl, could *.swf only play in a specify rect, just looks like it embedded in the windows

    Thank you!

  2. #2
    Nokia Developer Moderator skumar_rao's Avatar
    Join Date
    Mar 2004
    Location
    Singapore
    Posts
    9,968
    Might not be possible with APIs available at this time with symbian.
    Note: Donot muti-post.

  3. #3
    Registered User xiongyuwei's Avatar
    Join Date
    Apr 2008
    Posts
    14
    Quote Originally Posted by zhangwei_Nirvana View Post
    Hi,

    I want open a *.swf in CCoeControl, could *.swf only play in a specify rect, just looks like it embedded in the windows

    Thank you!
    I met the same question and I think there should be a corresponding API to solve this issue. Does any one know?

    There are some articles on wiki using DocumentHandler. But it's not play the swf on a specified rect. It's more proper to use it playing the starting movie of an application.

  4. #4
    Nokia Developer Moderator ltomuta's Avatar
    Join Date
    Sep 2004
    Location
    Tampere, Finland
    Posts
    11,335
    Flash content can only be played:
    - in the Flash player (see Document Handler)
    - in browser through the Flash plug-in
    - as a standalone application (see Flash Viewer Framework API)

    It cannot be played in a UI component.

  5. #5
    Registered User xiongyuwei's Avatar
    Join Date
    Apr 2008
    Posts
    14
    I've found one way to solve the problem.

    In this way, we can play .swf inside the app rather than play it in FlashPlayer. But it's full screen and I didn't find a way to resize the swf.

    here is the code.

    class CSwfPlayer : public CBase,MAknServerAppExitObserver
    {......}

    void CSwfPlayer::ConstructL()
    {
    CEikProcess* iProc;
    iProc = CEikonEnv::Static()->Process();
    iDocHandler = CDocumentHandler::NewL(iProc);
    }

    void CSwfPlayer::PlaySwf()
    {
    TThreadId id;
    RApaLsSession ls;
    User::LeaveIfError(ls.Connect());
    CleanupClosePushL(ls);

    //this is the private directory of your application

    TFileName fileName(KLitSwfFileToLaunch);
    RFs aFs;
    User::LeaveIfError(aFs.Connect());
    CleanupClosePushL(aFs);
    User::LeaveIfError(aFs.ShareProtected());

    RFile flashFile;
    User::LeaveIfError(flashFile.Open(aFs,fileName,EFileShareReadersOrWriters ));
    CleanupClosePushL(flashFile);

    iDocHandler->SetExitObserver(this);
    TDataType d_Type;
    TInt err = iDocHandler->OpenFileEmbeddedL(flashFile,d_Type);

    // TInt succ = ls.StartDocument(flashFile,id,NULL);

    CleanupStack::PopAndDestroy(3);
    aFs.Close();
    flashFile.Close();
    }


    void CHelloWorldBasicAppUi::HandleServerAppExit(TInt /* aReason*/)
    {
    Exit();
    }

  6. #6
    Nokia Developer Moderator ltomuta's Avatar
    Join Date
    Sep 2004
    Location
    Tampere, Finland
    Posts
    11,335
    That's exactly what the Document Handler does, you've just re-discovered the wheel. :)

Similar Threads

  1. Nokia N958GB Flash Lite 3.0 XMLSocket Bug (Firmware v15.0.015)
    By ryan_at_frog in forum [Archived] Flash Lite on Nokia Devices
    Replies: 13
    Last Post: 2009-10-26, 22:08
  2. Flash Lite eSeminar: Predictive Mobile Search comes to Flash Lite
    By biskero in forum [Archived] Flash Lite on Nokia Devices
    Replies: 0
    Last Post: 2008-04-17, 14:03
  3. Flash lite 1.x and Databases
    By abolfoooud in forum [Archived] Flash Lite on Nokia Devices
    Replies: 7
    Last Post: 2008-04-15, 13:56
  4. series 40 Flash lite 2 and video.seek()
    By hp3 in forum [Archived] Flash Lite on Nokia Devices
    Replies: 2
    Last Post: 2008-01-31, 18:38
  5. Replies: 2
    Last Post: 2007-04-17, 13:32

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