PDA

Click to See Complete Forum and Search --> : WMP 10 SDK audio CD [RESOLVED]


Techno
Sep 18th, 2005, 11:14 AM
Hi

I can get an entire audio CD to play in my embedded WMP 10 Application (using C#)?

I cannot seem to find a way but only to make it play the first track, or 2nd track but not the entire tracks on the CD.

how can I make the application play the entire audio CD just as you would when you insert a CD in Windows?

of course the following code has the first item to play and will only play that item. I cannot put it in a for loop, for obvious reasons - it will skip to the last track and play that...


this.theWMPObj.URL = this.theWMPObj.cdromCollection.Item(0).Playlist.get_Item(0).sourceURL;

Techno
Sep 18th, 2005, 08:51 PM
answer:

this.theWMPObj.currentPlaylist = this.theWMPObj.cdromCollection.Item(0).Playlist;