Re: Accessing HTML embeded objects with Internet Explorer ActiveX...

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



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.


.



Relevant Pages

  • Re: Accessing HTML embeded objects with Internet Explorer ActiveX.
    ... Are you suggesting I use MSHTML or some other ... >> I generate a HTML file dynamically and within the HTML file I embed a ... powerpoint presentation or movie file similar to ... ... >> movie has finished playing, either by the user pressing Stop or if the ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: auto run of PowerPoint show on website.
    ... The most efficient software for making small file sizes for web delivery ... > screen a Qt Movie is large in the 20-30mb range. ... > support folder is only 2.2 MB and the html file is just 4k. ... >> in PowerPoint or the Viewer, but you can't count on that. ...
    (microsoft.public.mac.office.powerpoint)
  • Re: auto run of PowerPoint show on website.
    ... Movie is large in the 20-30mb range. ... MB and the html file is just 4k. ... > PowerPoint, use a screen capture program like Snapz Pro to make the movie. ... >>I made a self running flash movie while I was testing Macromedia Flash. ...
    (microsoft.public.mac.office.powerpoint)
  • swf flash file embedded in html file which is edited in excel.. he
    ... I have an html file which has an swf flash movie embedded in it. ... it in excel, it works fine and the movie is viewable. ...
    (microsoft.public.excel.misc)
  • Help with embedded Flash issue related to IE.
    ... HTML document I am using the object tag to embed Flash. ... So the swf I am trying to load myflash.swf is in the same directory as ... the .html file. ...
    (microsoft.public.dotnet.framework.aspnet)