Question about AxWindowsMediaPlayer
Hello
I made WindowsMediaPlayer play mp3 file.
- How can I get elapsed time of playing mp3 file?
- How can I make WMP start playing mp3 file in X minutes not from 0.
Thanks
Hello
I made WindowsMediaPlayer play mp3 file.
- How can I get elapsed time of playing mp3 file?
- How can I make WMP start playing mp3 file in X minutes not from 0.
Thanks
Download the zip file solution of something I was
playing around with from:
http://www.driveway.com/kehde65653
It should show you how to display elapsed time.
Try adding some code to change the M_Audio.CurrentPosition
to have it start the MP3 at other than the beginning.
Oh, by the way, it uses Microsoft.DirectX.AudioVideoPlayback
instead of WindowsMediaPlayer.
Also see my post about this program at:
http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=2116173&SiteID=1
Private Sub Button1_Click(ByVal sender As System.Object, _
ByVal e As System.EventArgs) Handles Button1.Click
' The duration shows in the media player in the
' bottom right corner
AxWindowsMediaPlayer1.URL = "C:\Documents and Settings\livingroom\My Documents\My Videos\Disney.wmv"
' Jump 2 minutes into the video
AxWindowsMediaPlayer1.Ctlcontrols.currentPosition = 120
End Sub