AxWindowsMediaPlayer control help

  • Thread starter Thread starter roidy
  • Start date Start date
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
 
Found it

AxWindowsMediaPlayer1.Ctlcontrols.play()

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

Rob
 
Found it

AxWindowsMediaPlayer1.Ctlcontrols.play()

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

Rob
 
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
 
Back
Top