I tried that but it does not work. The object I dragged into the WebForm
appears to have no name or ID that I can use to address it. One of the
params in the embedded object is "ID" and another is "Name". I tried
supplying values to those paramaters, but it does not work.
So, the HTML looks like this:
<OBJECT id="PlayerID" style="Z-INDEX: 102; LEFT: 432px; POSITION: absolute;
TOP: 48px" classid="clsid:6BF52A52-394A-11D3-B153-00C04F79FAA6"
name="PlayerName" VIEWASTEXT>
<PARAM NAME="URL" VALUE="">
etc...
</OBJECT>
Note that I added id= and name= . Then I added a button:
Private Sub btnPlay_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles btnPlay.Click
PlayerID.enabled = True
PlayerID.URL = "bud5.wmv"
PlayerID.controls.play()
End Sub
It will not work.
Thanx,
--
Anil Gupte
www.keeninc.net www.icinema.com
"Michel Posseth [MCP]" <MS**@posseth.comwrote in message
news:%2****************@TK2MSFTNGP04.phx.gbl...
Hello Anil
Just set a media player control in the toolbox and drag it on your form
regards
michel
"Anil Gupte" <an*******@icinema.comschreef in bericht
news:OW**************@TK2MSFTNGP06.phx.gbl...
>How do I embed Windows Media Player so I can control it with VB code. I
am familiar with embedding in a web page like this:
***************
<embed src="Test.asx" width=320 height=300 autostart=True
type="application/x-mplayer2"
pluginspage="http://www.microsoft.com/Windows/MediaPlayer/"
name="MediaPlayer1" showcontrols=1 showstatusbar=1</embed>
****************
I have also created a WM Player control in a VB Windows Application. But
now, I want to create the same app in a web page. I want to create my
own Play, FF, Rewind etc buttons with associated functions that handle
these events in a custom manner. I am using VB.Net 2003
Thanx,
--
Anil Gupte
www.keeninc.net
www.icinema.com