Discussion:
Creating clickable video
(too old to reply)
Farslayer
2006-11-28 20:20:01 UTC
Permalink
I'm embedding a WMV stream on a simple HTML page. How do I create a video
which can be clicked to open a URL in a new browser window?
Neil Smith [MVP Digital Media]
2006-11-29 23:38:08 UTC
Permalink
On Tue, 28 Nov 2006 12:20:01 -0800, Farslayer
Post by Farslayer
I'm embedding a WMV stream on a simple HTML page. How do I create a video
which can be clicked to open a URL in a new browser window?
You need to attach a browser event to the HTML ID of the player
object, which handles onclick events. How you do that varies, but it's
usually better to use a browser abstraction layer such as that used by
Scott Andrew : http://www.scottandrew.com/weblog/articles/cbs-events

The event handler should be called to attach to player events after
the page has loaded (you could use <body onload="blah()"> for this, or
attach the load event for the body to fire the later event handlers
directly during the page load using script)

You want to trap the MouseDown event listed at the bottom of this page
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wmpsdk11/mmp_sdk/playerobject.asp


Gimme a shout Friday if this is as clear as mud - I can provide
example code but I'm really backed up now with a new website launch.

HTH
Cheers - Neil
------------------------------------------------
Digital Media MVP : 2004-2006
http://mvp.support.microsoft.com/mvpfaqs

Loading...