Question about Intel Computers & Internet
i am an mca student.for my projectwork pls help me.i am making q mediaplayer in vb.net2003.how i can add a playlist and add and remove songs through it.help me with code pls
Hi, Some expert will solve this issue soon. Since I m pretty busy I can give you a tip:
Either you could use a temp file or a queue. 1. Creating the play list. 2. Adding / Removing. 3. Saving/ Loading. 3 steps.
You can just use a queue to load items. It has to be expanded in a situation which is the queue is full. You have to work on that. Use a separate thread for the playlist. You may use a queue or a temp file to store the locations temporarily (with specified rows or / and pointers). File operation is slower than a queue. Adding removing items: You can use a file handle to let the user Browse for folder and select one or multiple items. Then store it in the queue or tmp file. If you want to allow drag and drop Check this tutorial and get an idea since its a bit too long process to explain. http://www.dreamincode.net/forums/topic/132491-drag-and-drop-files/
So when you have finished that you have to keep pointers to each file. Use it further to play the file. (To access the file).
Removing files: Remove the pointer and delete the entry in tmp file or update the queued data (or you can ignore that but queue may overflow if it doesn't managed well) To do so you can use another thread but it must not override the playing process. Its very good to have two queues however and that will increase the performance. One for playlist and one for pointers of available items in the play list.
Save and Load: Saving can be done using a file operation easily. When loading the file check for the play list extension. Its better if you could examine other play lists as well (for other players such as Windows media player, KM Player, Real Player etc.) You can have an idea. How ever its very important that to maintain the compatibility with other play lists. If your player can load other formats and if other players could load your format then its optimized.
When you load it use the queue or tmp file. Temp file has to be a text file or similar. Have fun! Reg. Lasitha
Posted on May 29, 2010
a 6ya expert can help you resolve that issue over the phone in a minute or two.
best thing about this new service is that you are never placed on hold and get to talk to real repairmen in the US.
the service is completely free and covers almost anything you can think of (from cars to computers, handyman, and even drones).
click here to download the app (for users in the US for now) and get all the help you need.
Posted on Jan 02, 2017
Tips for a great answer:
Feb 03, 2010 | Microsoft Visual Basic 6.0 for PC
Dec 27, 2009 | Microsoft Visual Basic 6.0 for PC
Sep 09, 2009 | SanDisk Sansa e260 MP3 Player
Jan 27, 2009 | Microsoft Windows XP Professional
Oct 19, 2008 | Microsoft MS SQL SERVER (810-01567-3-1)...
Oct 09, 2008 | Adobe Photoshop 7.0 for PC
Sep 02, 2017 | Intel Computers & Internet
279 people viewed this question
Usually answered in minutes!