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

[204 byte] By [Penicillin] at [2008-1-10]
# 1

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

TallDude at 2007-10-3 > top of Msdn Tech,Visual Basic,Visual Basic Language...
# 2

Good one

But I want to use Windows Media Player.

How I do these things in Windows Media Player?

Penicillin at 2007-10-3 > top of Msdn Tech,Visual Basic,Visual Basic Language...
# 3

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

TallDude at 2007-10-3 > top of Msdn Tech,Visual Basic,Visual Basic Language...
# 4

Thanks

That's exactly what I want.

Penicillin at 2007-10-3 > top of Msdn Tech,Visual Basic,Visual Basic Language...