×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    Apr 2007
    Posts
    7

    Exclamation how to code a playlist in mp3 player?

    I have finished creating my mp3 player with most functions built into it..
    I want to add a playlist to it. At the moment i am using fileConnection and fileBrowser to search for a song, select it and then play it.
    I now want to select more than 1 song so that the mp3 player plays the tracks one by one like in a playlist.
    Can anyone help me with this, as i have not got a clue of how to go about coding it?
    Thanks,
    Neil

  2. #2
    Regular Contributor
    Join Date
    Aug 2006
    Posts
    307

    Re: how to code a playlist in mp3 player?

    If you can scan the folders, and get the list of mp3 files, then it's quite an easy thing. Store the mp3 files URIs in the String[] array, and display it in your player. Adding and removing tracks is mostly about updating this String[] array.

    After all you'll be able to store this URIs array in the RMS or external file (with your own format and extension, or simply as a txt file). Later on the midlet's launch your mp3 player may try to search this playlist.txt file from the special directory, and display preffered mp3s to the user. Also you can even store in this playlist file some statistics data about played mp3s, just to get the most listen files on the top of the list.

  3. #3
    Registered User
    Join Date
    Apr 2007
    Posts
    7

    Re: how to code a playlist in mp3 player?

    i have tried using the string[] array, but i dont know how to store the path of the song into this array.
    i am using the fileconnection to open the file, so i will need to store the path of the song into the string[] array, and open from there, but dont know what to save to the array? i tried assigning the path to the array, but then when i tested it out, the phone would refuse to open the file..
    Can i get help on this please?
    Last edited by neilruparel; 2007-04-20 at 17:05.

Similar Threads

  1. Replies: 1
    Last Post: 2006-11-03, 22:12
  2. How to creat a URL mp3 player?
    By kdwx in forum Symbian Media (Closed)
    Replies: 0
    Last Post: 2006-07-18, 07:42
  3. problems displaying video
    By gorsken in forum Mobile Java Media (Graphics & Sounds)
    Replies: 6
    Last Post: 2006-06-21, 17:18
  4. playlist.dat n-gage mp3 player
    By barrisca in forum Symbian
    Replies: 0
    Last Post: 2004-01-12, 23:49

Posting Permissions

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