Categories: How To | Flash Lite | Symbian C++ | S60 | Code Examples
This page was last modified 18:37, 2 October 2007.
How to play a SWF file from your Symbian application?
From Forum Nokia Wiki
The new flashlite player in S60 3rd edition FP1 devices (e.g. 6110 or 6120) has a new feature to allow user to save the SWF in the flashlite directory upon exit. If you do not want the flashlite player to prompt user to save the SWF, you can try the method below. If you get a permission error by using the method below, you will have to reflash your device to the latest firmware. I do not have the exact version of the firmware at this moment but i will update this page again once i get the information.
CDocumentHandler* iDocHandler; iDocHandler = CDocumentHandler::NewL((CEikProcess*)iEikonEnv->Process()); TThreadId id; RApaLsSession ls; User::LeaveIfError(ls.Connect()); CleanupClosePushL(ls); _LIT(KLitSwfFileToLaunch,"C:\\private\\06fd5506\\A.swf"); //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); TInt succ = ls.StartDocument(flashFile,id,NULL); CleanupStack::PopAndDestroy(3); aFs.Close(); flashFile.Close(); delete iDocHandler;
| Related Discussions | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Playing AMR file | -KSV- | Mobile Java Media (Graphics & Sounds) | 6 | 2006-06-17 17:33 |
| Help me in related to IVRS. | Tanya | Symbian Media (Graphics & Sounds) | 3 | 2007-12-17 09:00 |
| amr file not playing full | S.S.Sudhakar | General Symbian C++ | 9 | 2008-01-17 11:22 |
| CDrmPlayerUtility in symbian 9.1? | david_lovecraft | General Symbian C++ | 7 | 2008-02-26 09:31 |
| How to access the memory of mobile phone... | chris3388 | Mobile Java General | 17 | 2004-02-19 17:05 |
