AxWindowsMediaPlayer control help

R

roidy

I`ve added a AxwindowsMediaPlayer to my form with the uiMode set to none to
hide the controls. I give it a file to play using:-

AxWindowsMediaPlayer1.URL = "filename.mp4"

But how do I start playback? You`d think it would be something simple like:-

AxWindowsMediaPlayer1.Start()
or
AXWindowsMediaPlayer1.Play()

But I carn`t find how to start playback anywhere.

Thanks
Rob
 
R

roidy

Found it

AxWindowsMediaPlayer1.Ctlcontrols.play()

Nice and obscure place to put it............

Rob
 
R

roidy

Found it

AxWindowsMediaPlayer1.Ctlcontrols.play()

Nice and obscure place to put it............

Rob
 
S

sk8erman80

Or, you can do this:

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button1.Click
OpenFileDialog1.ShowDialog()

Dim file As String
file = OpenFileDialog1.FileName
AxWindowsMediaPlayer1.URL = file
End Sub

Note: I did not do this code, I found it on a tutorial on Youtube.com
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top