How to use window media player
I have just added a window media player in win form the question is how to play multiple songs,videos one by one automatically and the all the list of the songs displayed in a listBox as like our normal media player...
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
gunjan aroraPosted Apr 16, 2014, 2:02 AM
The solution which I feel is to make another list box or take a dynamic array to add new songs.
2 ways are there -
1. you can add old as well as your new songs in that dynamic array along with old songs existing in listbox1.
2.inspite of directly binding the songs in listbox bind it into dynamic array and then clear your listbox just before adding the new songs into it.and then highlight the already selected song which is currently running as this will not effect the current song running as the current song residing in the buffer memory of window media player.
Hope this will help.
Ajay KadianPosted Apr 19, 2014, 12:25 PM
Amit ZivPosted Apr 19, 2014, 11:13 AM
Ajay KadianPosted Apr 18, 2014, 4:51 AM
And please delete your thread in which you provided the code.
Amit ZivPosted Apr 17, 2014, 5:41 PM
not cool man...
gunjan aroraPosted Apr 15, 2014, 4:56 AM
Ajay KadianPosted Apr 15, 2014, 4:40 AM
That's the problem and i m using a soundcard.
Munesh SharmaPosted Apr 15, 2014, 3:16 AM
http://www.youtube.com/watch?v=xlIZQed46Jw
gunjan aroraPosted Apr 15, 2014, 2:37 AM
Ajay KadianPosted Apr 14, 2014, 11:39 AM
thanks
Amit ZivPosted Apr 13, 2014, 2:49 PM
try to get the current index length and add to it the number of files you have added to the list..
Ajay KadianPosted Apr 13, 2014, 1:36 PM
Amit ZivPosted Apr 13, 2014, 12:57 PM
1. make sure your openfiledialog.multiselect = true;
2. make sure your listbox index inputs are correct.
3. if u still cant find the problem, put breakpoints in the nextsong method and check why the index is out of bounds..
and i really dont know anything about how to enable those...
P.S if you could upload your code i might be able to edit it..
Ajay KadianPosted Apr 13, 2014, 6:33 AM
Thanks
Munesh SharmaPosted Apr 13, 2014, 4:45 AM
http://stackoverflow.com/questions/8970106/resume-a-paused-mp3-file-in-c-sharp-winforms-using-wmplib-windowsmediaplayer
Nilesh AvhadPosted Apr 10, 2014, 10:36 AM
Refer
http://msdn.microsoft.com/en-us/library/windows/desktop/dd562851(v=vs.85).aspx
http://stackoverflow.com/questions/15025626/playing-a-mp3-file-in-a-winform-application