×

Discussion Board

Results 1 to 5 of 5
  1. #1
    Registered User
    Join Date
    Jul 2010
    Posts
    2

    Memory issue in flashlite

    Hi All,

    Please help me!

    I'm a new bie with flashlite. I have an issue with memory. I play list of video on device(nokia E66). But it plays about 20 files, it shows error "Not enough memory to open file". Could you please help me to solve this error?


    Thanks.

  2. #2
    Registered User
    Join Date
    Apr 2008
    Location
    India / Singapore
    Posts
    549

    Re: Memory issue in flashlite

    Can you describe how you handle the previous 20 files ? Are you doing any garbage collection ...
    For eg, are you associating the same Video Object to play diff files or creating 20 objects ?

    Info -> you may test/profile memory usage in Device Central ...
    Twitter - manikantan_k
    Just in --

  3. #3
    Registered User
    Join Date
    Jul 2010
    Posts
    2

    Re: Memory issue in flashlite

    This is my code:

    var nc:NetConnection;
    nc.connect(null);
    var ns:NetStream;

    var arr:Array = ["http://www.esnips.com/videoads/video_ads_channel/twtiter300x250.flv",
    "http://www.esnips.com/videoads/video_ads_channel/twtiter300x250.flv",
    "http://www.esnips.com/videoads/video_ads_channel/twtiter300x250.flv",
    "http://www.esnips.com/videoads/video_ads_channel/twtiter300x250.flv",
    "http://www.esnips.com/videoads/video_ads_channel/twtiter300x250.flv",
    "http://www.esnips.com/videoads/video_ads_channel/twtiter300x250.flv",
    "http://www.esnips.com/videoads/video_ads_channel/twtiter300x250.flv",
    "http://www.esnips.com/videoads/video_ads_channel/twtiter300x250.flv"];
    var index:Number = 0;
    function init(){
    nc = new NetConnection();
    nc.connect(null);
    ns = new NetStream(nc);
    myVideo.attachVideo(ns);
    trace("------------" + arr[index].toString());
    ns.play(arr[index].toString());
    }

    function startMovie(){
    ns.play(arr[index].toString());
    }

    init();

    var keyListener:Object = new Object();
    Key.addListener(keyListener);
    keyListener.onKeyDown = function(){
    if(Key.getCode() == Key.RIGHT){
    index ++;
    if(index == arr.length)
    index = 0;
    init();
    startMovie();
    }

    }


    I just play this file many times. In Device Central, it's fine.

  4. #4
    Nokia Developer Champion
    Join Date
    Apr 2005
    Location
    Boston
    Posts
    517

    Re: Memory issue in flashlite

    Ciao,

    how big are videos? You might want to use a buffer and also check the memory consumption in DC.
    Alessandro

  5. #5
    Regular Contributor
    Join Date
    Feb 2010
    Posts
    157

    Re: Memory issue in flashlite

    Hi,

    If this conversation is about flash lite stand alone applications, then using Carbide C++ with a little modification, helps a great deal. Although the longest time that a single video can be played safely is 15 min, and that too, by deleting and recreating the netstream object.

    ****************************************************************************************
    //_LIT(KStubFlashContent, "\\Private\\<0x********>\\MyApp.swf");
    _LIT(KStubFlashContent, "C:\\Private\\<0x********>\\MyApp.swf");//for application to run even from the memory card

    TUid CstubApplication::AppDllUid() const
    {
    return KUidFlashStubApp;
    }

    CApaDocument* CstubApplication::CreateDocumentL()
    {
    RProcess currentProcess;
    TFileName fileName(KStubFlashContent);

    // Get letter of drive to which app was installed. It might be E or F instead of C
    fileName[0] = currentProcess.FileName()[0];
    currentProcess.Close(); // Close handle (not the app).

    config.iIsMMI = EFalse;
    config.iIsStubApp = ETrue;
    //config.iContentFileName.Copy(KStubFlashContent);
    config.iContentFileName.Copy(fileName);
    config.iContentChecksum = 0;
    config.iExtensions = NULL;
    config.iReserved1 = NULL;
    config.iReserved2 = 20000;//to increase memory to play videos for a long time
    if (!FlashStubsSupported())
    {
    User::Leave( KErrNotSupported);
    }
    return CreateFlashDocumentL(iFlashLibrary, this, config);
    }
    ****************************************************************************************

    Regards,
    Supriya Tenany
    Last edited by supriyaakg; 2010-08-18 at 04:56.

Similar Threads

  1. Can't run flashlite sisx on mass memory
    By roungchen in forum [Archived] Flash Lite on Nokia Devices
    Replies: 4
    Last Post: 2010-08-05, 12:07
  2. Nokia 5200 + FlashLite themes = issue...
    By wanny in forum [Archived] Flash Lite on Nokia Devices
    Replies: 1
    Last Post: 2009-09-02, 08:21
  3. How do I enable Memory in flashlite 2.1 for N73 applciation
    By pakkami22 in forum [Archived] Flash Lite on Nokia Devices
    Replies: 3
    Last Post: 2008-11-27, 14:59
  4. Flashlite - which phone has largest memory space
    By Sludge in forum [Archived] Flash Lite on Nokia Devices
    Replies: 6
    Last Post: 2008-01-25, 14:54
  5. How to browse file in phone memory by using Flashlite + Java.
    By pao_karb in forum Mobile Java General
    Replies: 0
    Last Post: 2007-12-18, 07:19

Posting Permissions

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