×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    May 2007
    Location
    jakarta, indonesia
    Posts
    14

    slide show - multimedia player (memory problem?)

    hi guys.
    i've created a multimedia player with slideshow where you can view next image by pressing left(keyCode -3) or right(-4) navigation button --> at least after viewing/playing an video/image.

    below is my code form left keypress... (the right one would be just like this one)
    case -3:
    if(!this.back && this.parent.mainMenu.selectedMenu == 0 && this.fileList.size() > 0)
    {
    boolean found = false;
    this.pos = this.currentFile;
    do
    {
    if(this.currentFile > 0)
    this.currentFile--;
    else
    this.currentFile = this.fileList.size() - 1;

    if(this.currentFile == this.pos)
    break;

    String file = (String)this.fileList.elementAt(this.currentFile);

    if(file.equals(".."))
    continue;

    int temp = file.lastIndexOf('.');
    if(temp > -1)
    {
    String ext = file.substring(temp + 1, file.length());
    if(Definition.videoMimeTable.containsKey(ext) |Definition.imageMimeTable.containsKey(ext))
    found = true;
    }
    else
    found = false;
    }while(!found);

    if(found)
    {
    //this.navLeft = true;
    this.closePlayer();
    this.preparePlayer((String)this.fileList.elementAt(this.currentFile));
    //this.repaint(); testing juga ah
    }
    }
    break;

    FYI, i'm retrieving these files from the phone memory (using FileConnection)
    the problem/error is that sometimes after i pressed right/left key it wont open/play the next/previous file..

    but when i try to view the file one by one (not using slideshow feature) - it work.

    please help me..i dont know what to do anymore..

  2. #2
    Super Contributor
    Join Date
    Nov 2003
    Location
    Bangalore , India
    Posts
    4,429

    Re: slide show - multimedia player (memory problem?)

    Have you tried in an Emulator? Does it work fine ? Please check whether you are getting any Exceptions.

    Regards
    Gopal

  3. #3
    Registered User
    Join Date
    May 2007
    Location
    jakarta, indonesia
    Posts
    14

    Re: slide show - multimedia player (memory problem?)

    i've tried in emulator. it's worse. it cannot slide(prev/next) at all.. and it also cannot preview image taken with phone camera.

    that's why i try it on the phone.
    take a look at my code above. is it logically right, isnt it??

    pls help
    thanks

Similar Threads

  1. Using Camera API requires too much memory
    By tote_b5 in forum Symbian Media (Closed)
    Replies: 18
    Last Post: 2008-07-31, 16:21
  2. Excessive midlet memory consumption
    By paulip in forum Mobile Java General
    Replies: 1
    Last Post: 2007-10-09, 19:24
  3. N80 memory card problem after update
    By fjorge_ht in forum General Development Questions
    Replies: 6
    Last Post: 2006-11-04, 16:59
  4. can not successfully link any sample using .NET
    By lobotomat in forum Symbian Tools & SDKs
    Replies: 2
    Last Post: 2002-08-20, 00:29
  5. 7650: Problem in memory PhoneBook
    By raguso in forum Digital Rights Management & Content Downloading
    Replies: 0
    Last Post: 2002-07-25, 06:58

Posting Permissions

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