You Are Here:

Community: Developer Discussion Boards

#1 Old Exclamation how to code a playlist in mp3 player? - 2007-04-19, 22:44

Join Date: Apr 2007
Posts: 7
neilruparel
Offline
Registered User
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
Reply With Quote

#2 Old Re: how to code a playlist in mp3 player? - 2007-04-20, 07:23

Join Date: Aug 2006
Posts: 307
axs
Offline
Regular Contributor
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.
Reply With Quote

#3 Old Re: how to code a playlist in mp3 player? - 2007-04-20, 17:14

Join Date: Apr 2007
Posts: 7
neilruparel
Offline
Registered User
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 18:05.
Reply With Quote
Reply « Previous Thread | Next Thread »
Display Modes
Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules

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

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Forum Jump
Similar Threads
Thread Thread Starter Forum Replies Last Post
Programming special module to link mp3 player to live call nitesham General Symbian C++ 1 2006-11-03 23:12
How to creat a URL mp3 player? kdwx Symbian Media (Graphics & Sounds) 0 2006-07-18 08:42
problems displaying video gorsken Mobile Java Media (Graphics & Sounds) 6 2006-06-21 18:18
playlist.dat n-gage mp3 player barrisca General Symbian C++ 0 2004-01-13 00:49

Rate This

 
Bookmark this page: DeliciousDiggFacebookGoogleYahooStumbleUponRedditDiigoTechnocratiTwitter  Share this page Share this page Print this Page Print this page Invite a friend Invite a friend
京ICP备05048969号    Email Newsletters Press Terms & Conditions Privacy Policy Sitemap Contact Us © 2009 Nokia 
RDF Facets: qdcZidentifierQSxhttpE3aE2fE2fdiscussionE2eforumE2enokiaE2ecomhttpE3aE2fE2fdiscussionE2eforumE2enokiaE2ecomE2fforumE2fshowthreadE2ephpE3ftE3d18645X qdcZtypeQUqfnZE45E78cludedFromGeneralE4cistingsQ qdcZtypeQUqfntypeZCommunityContentQ qdcZtypeQUqfntypeZE44iscussionQ qdcZtypeQUqfntypeZE44iscussionContentQ qdcZtypeQUqfntypeZE52esourceQ qdcZtypeQUqfntypeZWebpageQ qdcZtypeQUqmarsZManagedE52esourceQ qdcZtypeQUqwebZInformationE52esourceQ qdcZtypeQUqwebZPageQ qdcZtypeQUqwebZE52esourceQ qdcZtypeQUqrdfsZE52esourceQ qfnZtopicQUqfnTopicZentertainmentQ qfnZtopicQUqfnTopicZj2meQ qfnZtopicQUqfnTopicZjavaQ qfnZtopicQUqfnTopicZmediaQ qfnZtypeQUqfntypeZCommunityContentQ qfnZtypeQUqfntypeZE44iscussionQ qfnZtypeQUqfntypeZE44iscussionContentQ qfnZtypeQUqfntypeZE52esourceQ qfnZtypeQUqfntypeZWebpageQ qmarsZlanguageQUxhttpE3aE2fE2fswE2enokiaE2ecomE2flanguageE2d1E2fenX qrdfZtypeQUqfnZE45E78cludedFromGeneralE4cistingsQ qrdfZtypeQUqfntypeZCommunityContentQ qrdfZtypeQUqfntypeZE44iscussionQ qrdfZtypeQUqfntypeZE44iscussionContentQ qrdfZtypeQUqfntypeZE52esourceQ qrdfZtypeQUqfntypeZWebpageQ qrdfZtypeQUqmarsZManagedE52esourceQ qrdfZtypeQUqwebZInformationE52esourceQ qrdfZtypeQUqwebZPageQ qrdfZtypeQUqwebZE52esourceQ qrdfZtypeQUqrdfsZE52esourceQ