for the last month I've been developing a set of plug-ins to paint hotspots
over a video wich contains arbitrary data with geometric information about
these hotspots. I followed this great article:
http://msdn.microsoft.com/library/en-us/dnwmt/html/makingwindowsmediaplayerp
luginsworktogether.asp
A first version of my render and DSP plug-ins are almost finished, the next
step is to make these plug-ins control both the player and the web browser
embedding the video. For instance, the plug-in must be able to change a
browser's frame when the user clicks on a hotspot, write some text, switch
images, ...
I have to develop an UI plug-in for controlling the player using IWMPCore.
The problem is that this interface only performs tasks such as Play, Stop,
etc. and launch new browser windows but I don't know how I can perform more
complex HTML functions.
I think it was enough if I can invoke JavaScript from the plug-in, is it
possible?
Best regards,
Manuel
1. You can pass parameters with the URL you use to open the browser
instance. Like "http://myurl/index.htm?"myparam = value"
2. You can create an ActiveX control that users must install to view your
Web content (not a big deal, they're already installing your plug-ins).
Then, your plug-in can connect to the ActiveX control. Just be careful about
the design and what you expose through your public interface because any Web
page will be able to instantiate your control - a security issue for the
user. Also, if you use the singleton model from the article, you'll have the
issue that all IE instances use the same process, so you'll need to be
careful about how you sort out instances of your plug-ins/controls.
Others, who do more Web work than I, may have further suggestions...
Oh, and thanks for the praise on the article.
--
Jim Travis
Microsoft Corp.
Windows Media Player SDK
Download:
http://msdn.microsoft.com/library/default.asp?url=/downloads/list/winmedia.asp
Latest online:
http://msdn.microsoft.com/library/en-us/wmplay/mmp_sdk/windowsmediaplayer9seriessdk.asp
Please do not send email directly to this alias as this alias is for
newsgroup purposes only. This posting is provided "AS IS" with no
warranties, and confers no rights. You assume all risk for your use. © 2004
Microsoft Corporation. All rights reserved.
"Manuel D. Jiménez González" <answertoforum@please> wrote in message
news:%23hEnUx3...@TK2MSFTNGP09.phx.gbl...
what I want to do is embed the video in a web page and use the video to
change this page features when user clicks hotspots. To install an ActiveX
control is too much work for the users, but thank you very much.
I have another question, can the UI plug-in be used when the video is not
playing in windows media player, but inside a web page? I have seen I can
activate DSP and Render but not UI plug-ins, when I right-click the video in
the page, so IWMPCore can not be used.
Thanks again,
Manuel
--
"Jim Travis [ms]" <jtr...@online.microsoft.com> wrote in message
news:uNVUFUq...@tk2msftngp13.phx.gbl...