Windows Media Player component
-
I have been fooling around with the Windows Media Player COM component. What I am trying to do is have the playlist be tied to a listbox from which they can add/remove and play songs. The problem I am having is that I cannot find a way to change the internal playlist selection in the Windows Media Player component. If I simply set currentMedia, then the internal playlist disappears. Anyone know a solution?
-
I have been fooling around with the Windows Media Player COM component. What I am trying to do is have the playlist be tied to a listbox from which they can add/remove and play songs. The problem I am having is that I cannot find a way to change the internal playlist selection in the Windows Media Player component. If I simply set currentMedia, then the internal playlist disappears. Anyone know a solution?
I had success maintaining my own playlist, and catching the events to tell me when to play the next file. I had no success building playlists in WMP. Christian Graus - Microsoft MVP - C++
-
I have been fooling around with the Windows Media Player COM component. What I am trying to do is have the playlist be tied to a listbox from which they can add/remove and play songs. The problem I am having is that I cannot find a way to change the internal playlist selection in the Windows Media Player component. If I simply set currentMedia, then the internal playlist disappears. Anyone know a solution?
I have worked around the WMP playlist but, as suggested above, maintaining the events externally. I places buttons on top of the WMP control to simulate the Next and Prev buttons (viz. screenshot, extract, overlay). If anyone is interested in the code I'd be happy to share. I have the next/prev working as well as auto-playing the next file in the playlist. Going to be working on randomizing playback soon.