I am writing an audio program in VB.net 2005 and I am having a bit of trouble with WMP.
I can get media added to the playlist and I can play it from there, but it doesn't load until I press play, which gives a slight delay while the media loads.
It also means that I cannot retrieve the length of the media untl it has been played.
Can anyone guide me on how to get the media loaded and ready, without having to play it.
This is the code I am currently using to add to the playlist:
Dim song = mPlayer.newMedia(Playlist.FileList.Items(0))
mPlayer.currentPlaylist.appendItem(song)
And then:
mPlayer.Ctlcontrols.play()
to play it
If anyone can help I would be very grateful. I'm sure it's a simple answer but I just can't find it lol.