G
Guest
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
27CDB6E-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.
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

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.