Re: how to play random mp3 files in a folder via VB6
You can shuffle like this
1- Add File1 control, set Pattern property to *.mp3 and Path to your folder
2- Create random number x range from 0 to File1.ListCount - 1
3- Pass the file at File1.ListItem(x) to WindowsMediaPlayer1
4- Wait until WindowsMediaPlayer1 finish playing the current file then repeat steps 2, 3 and 4.
Re: how to play random mp3 files in a folder via VB6
Checkout the MP3 Player I made. Here is the Windows Media Player version.
when you quote a post could you please do it via the "Reply With Quote" button or if it multiple post click the "''+" button then "Reply With Quote" button.
If this thread is finished with please mark it "Resolved" by selecting "Mark thread resolved" from the "Thread tools" drop-down menu. https://get.cryptobrowser.site/30/4111672
Re: [RESOLVED] how to play random mp3 files in a folder via VB6
I'm also haveing similar issues with my shuffle function. I have tried the method that Rattled_Cage showed however its not workin with mine (the same function works as loop with repeat function but isn't working with shuffle). I am using WMP version 9. will this make a difference or is there a different way with version 9? I have tried many different methods all have failed. (also the EndOfStream event never occurs either)
Re: [RESOLVED] how to play random mp3 files in a folder via VB6
Originally Posted by Future_FireFighter
After I unzipped this file. it wouldn't open in vb. no form to open. Not sure what the deal is here?
That is because Rattled_Cage forgot to include the form, etc in the zip file, you can't do much with just a vbw and a vbp file.
when you quote a post could you please do it via the "Reply With Quote" button or if it multiple post click the "''+" button then "Reply With Quote" button.
If this thread is finished with please mark it "Resolved" by selecting "Mark thread resolved" from the "Thread tools" drop-down menu. https://get.cryptobrowser.site/30/4111672