Re: Accessing HTML embeded objects with Internet Explorer ActiveX...
- From: "Nicholas Paldino [.NET/C# MVP]" <mvp@xxxxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Mon, 5 Dec 2005 10:58:27 -0500
Dominique,
That's going to be hard to do. You will have to find out which object
it is exactly (using the class id, most likely), and then find out the
specific events based on that.
I would recommend standardizing the format and the player you are going
to use, this way, you can be sure to detect when the movie ends (instead of
trying to determine this from arbitrary players).
Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mvp@xxxxxxxxxxxxxxxxxxxxxxxxxxx
"Dominique" <Dominique@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:48039AF4-9D3D-428E-BA6F-47508BDCDD66@xxxxxxxxxxxxxxxx
> Hi all,
> I'm using .NET v1.1 and the scenario I have is as follows...
>
> I have IE as an ActiveX control embedded in may C# App.
> I generate a HTML file dynamically and within the HTML file I embed a
> Flash, powerpoint presentation or movie file similar to ...
> <object id="globalnav-object"
> classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
> codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0"
> width="756" height="88">
> <param name="movie"
> value="/swf/globalnav/globalnav_en_us.swf?fpReqMinor=79" />
> <param name="FlashVars"
> value="loc=en_US&htmlApp=false&gatewayURL=gwurl" />
> <param name="bgcolor" value="#c6cfd0" />
> <param name="menu" value="false" />
>
> <param name="quality" value="high" />
> <param name="salign" value="tl" />
> <param name="scale" value="noscale" />
> <embed id="globalnav-embed"
> src="/swf/globalnav/globalnav_en_us.swf?fpReqMinor=79"
> type="application/x-shockwave-flash"
> pluginspage="http://www.macromedia.com/go/getflashplayer"
> flashvars="loc=en_US&htmlApp=false&gatewayURL=gwurl" bgcolor="#c6cfd0"
> menu="false" quality="high" salign="tl" scale="noscale" width="756"
> height="88"></embed>
> </object>
>
> I then save this HTML file to the HD and then get my C# embeded IE
> browser to navigate to the new HTML file to display it to the user.
> This is all fine and working.
>
> From my C# App, how can I know when the user has pressed play on
> either the Flash or MediaPlayer movie and also how can I tell when the
> movie has finished playing, either by the user pressing Stop or if the
> movie reaches the end?
>
> I would like to be able to generate two C# events, one which is
> fired when the Flash/Movie in the HTML file starts and also one when it
> finishs. Is this possible and if so how? Would MSHTML be usefull for this,
> again if so how?
>
> Any links/advice/example code appreciated.
.
- Follow-Ups:
- Prev by Date: Re: Moving window
- Next by Date: Re: Setting UTC time to 1970 (Unix Epoch)
- Previous by thread: Moving window
- Next by thread: Re: Accessing HTML embeded objects with Internet Explorer ActiveX.
- Index(es):
Relevant Pages
|