Home All Groups Group Topic Archive Search About

AxWindowsMediaPlayer control help

Author
15 May 2009 5:16 PM
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

Author
15 May 2009 6:32 PM
roidy
Found it

        AxWindowsMediaPlayer1.Ctlcontrols.play()

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

Rob

Show quoteHide quote
"roidy" <r*@nnnnnn.com> wrote in message
news:8shPl.48911$3O6.1341@newsfe19.ams2...
> 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
>
>
Author
13 Jun 2009 6:10 PM
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
Show quoteHide quote
"roidy" wrote:

> Found it
>
>         AxWindowsMediaPlayer1.Ctlcontrols.play()
>
> Nice and obscure place to put it............
>
> Rob
>
> "roidy" <r*@nnnnnn.com> wrote in message
> news:8shPl.48911$3O6.1341@newsfe19.ams2...
> > 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
> >
> >
>